From cfeabd7a9e774d587f61b1f9d3a1290ec3065b74 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 4 Apr 2021 17:11:09 +0100 Subject: [PATCH] corrects custom commands via discord --- BetterSecondbot/DiscordSupervisor/Inbound.cs | 2 +- Core/bottypes/CommandsBot.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BetterSecondbot/DiscordSupervisor/Inbound.cs b/BetterSecondbot/DiscordSupervisor/Inbound.cs index 05ebe7d..84c6201 100644 --- a/BetterSecondbot/DiscordSupervisor/Inbound.cs +++ b/BetterSecondbot/DiscordSupervisor/Inbound.cs @@ -111,7 +111,7 @@ namespace BetterSecondBot.DiscordSupervisor { target = bits[2]; } - string args = null; + string args = ""; if (bits.Length >= 2) { args = bits[1]; diff --git a/Core/bottypes/CommandsBot.cs b/Core/bottypes/CommandsBot.cs index b6a360a..f5e5d2e 100644 --- a/Core/bottypes/CommandsBot.cs +++ b/Core/bottypes/CommandsBot.cs @@ -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 statusreply = callAPIcommand(command, args); SmartCommandReply(statusreply.Key, replyvia, statusreply.Value, command);