Update Inbound.cs

This commit is contained in:
Madpeterz 2021-04-08 01:35:12 +01:00
parent a44b80c7d2
commit 889dd5175d

View file

@ -118,7 +118,15 @@ namespace BetterSecondBot.DiscordSupervisor
} }
if (controler.getBot().GetFullListOfCommandsWithCustoms().Contains(bits[0].ToLowerInvariant()) == true) if (controler.getBot().GetFullListOfCommandsWithCustoms().Contains(bits[0].ToLowerInvariant()) == true)
{ {
string reply = controler.getBot().CallAPI(bits[0], args.Split("~#~"), target); string reply = "";
if (args == "")
{
reply = controler.getBot().CallAPI(bits[0], new string[] { }, target);
}
else
{
reply = controler.getBot().CallAPI(bits[0], args.Split("~#~"), target);
}
await message.Channel.SendMessageAsync(reply, false, null,null,null, new MessageReference(message.Id)).ConfigureAwait(false); await message.Channel.SendMessageAsync(reply, false, null,null,null, new MessageReference(message.Id)).ConfigureAwait(false);
} }
else else