corrects custom commands via discord

This commit is contained in:
Madpeterz 2021-04-04 17:11:09 +01:00
parent 7c2326fd8b
commit cfeabd7a9e
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ namespace BetterSecondBot.DiscordSupervisor
{
target = bits[2];
}
string args = null;
string args = "";
if (bits.Length >= 2)
{
args = bits[1];

View file

@ -379,7 +379,7 @@ namespace BetterSecondBot.bottypes
}
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);
SmartCommandReply(statusreply.Key, replyvia, statusreply.Value, command);