corrects custom commands via discord
This commit is contained in:
parent
7c2326fd8b
commit
cfeabd7a9e
2 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ namespace BetterSecondBot.DiscordSupervisor
|
||||||
{
|
{
|
||||||
target = bits[2];
|
target = bits[2];
|
||||||
}
|
}
|
||||||
string args = null;
|
string args = "";
|
||||||
if (bits.Length >= 2)
|
if (bits.Length >= 2)
|
||||||
{
|
{
|
||||||
args = bits[1];
|
args = bits[1];
|
||||||
|
|
|
||||||
|
|
@ -379,7 +379,7 @@ namespace BetterSecondBot.bottypes
|
||||||
}
|
}
|
||||||
CallAPI(command_args_split[0], args_passed.Split("~#~"),"None",true);
|
CallAPI(command_args_split[0], args_passed.Split("~#~"),"None",true);
|
||||||
}
|
}
|
||||||
return "{ status: \"true\", message: \"mixed reply cuistom command\" }";
|
return "{ status: \"true\", message: \"mixed reply custom command\" }";
|
||||||
}
|
}
|
||||||
KeyValuePair<bool, string> statusreply = callAPIcommand(command, args);
|
KeyValuePair<bool, string> statusreply = callAPIcommand(command, args);
|
||||||
SmartCommandReply(statusreply.Key, replyvia, statusreply.Value, command);
|
SmartCommandReply(statusreply.Key, replyvia, statusreply.Value, command);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue