Update HttpAsService.cs
Pass why failed to basic history
This commit is contained in:
parent
f304ad61f8
commit
93017a50dd
1 changed files with 7 additions and 1 deletions
|
|
@ -504,7 +504,13 @@ namespace BetterSecondBot.HttpService
|
||||||
|
|
||||||
protected Object Failure(string input, string command, string[] args)
|
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 };
|
return new { reply = input, status = false };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue