Update Inbound.cs
This commit is contained in:
parent
a44b80c7d2
commit
889dd5175d
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue