adjustments to the discord command history add function

This commit is contained in:
Madpeter 2020-05-09 19:48:09 +01:00
parent 2bc5495600
commit b1b9a51c3b

View file

@ -44,7 +44,10 @@ namespace BSB.bottypes
public override string CommandHistoryAdd(string command, string arg, bool status, string WhyFailed)
{
string output = base.CommandHistoryAdd(command, arg, status, WhyFailed);
_ = SendMessageToChannelAsync("interface", output, "bot", UUID.Zero, "bot");
if (output != "")
{
_ = SendMessageToChannelAsync("interface", output, "bot", UUID.Zero, "bot");
}
return output;
}
protected async Task DiscordBotChatControler(string message, string sender_name, UUID sender_uuid, bool avatar, bool group, UUID group_uuid, bool localchat, bool fromme)