Update HttpAsService.cs

Pass why failed to basic history
This commit is contained in:
Madpeterz 2021-06-03 17:40:46 +01:00
parent f304ad61f8
commit 93017a50dd

View file

@ -504,7 +504,13 @@ namespace BetterSecondBot.HttpService
protected Object Failure(string input, string command, string[] args)
{
bot.CommandHistoryAdd(command, String.Join("~#~",args), false, "");
bot.CommandHistoryAdd(command, String.Join("~#~",args), false, input);
return new { reply = input, status = false };
}
protected Object Failure(string input, string command, string[] args, string whyfailed)
{
bot.CommandHistoryAdd(command, String.Join("~#~", args), false, whyfailed);
return new { reply = input, status = false };
}