Update HttpService.cs

This commit is contained in:
Madpeter 2022-06-08 03:00:17 +01:00
parent 458afc7508
commit 4a3bffda2c

View file

@ -176,13 +176,13 @@ namespace SecondBotEvents.Services
protected object BasicReply(string input, string[] args, string command) protected object BasicReply(string input, string[] args, string command)
{ {
master.DataStoreService.AddCommandToHistory(true, command, args); master.DataStoreService.AddCommandToHistory(true, command, args);
return new { reply = input, status = false }; return new { command = command, args = args, reply = input, status = true };
} }
protected object Failure(string input, string command, string[] args, string whyfailed) protected object Failure(string input, string command, string[] args, string whyfailed)
{ {
master.DataStoreService.AddCommandToHistory(false, command, args); master.DataStoreService.AddCommandToHistory(false, command, args);
return new { reply = input, status = false }; return new { command = command, args = args, reply = input, status = false, whyfailed = whyfailed };
} }
protected object Failure(string input, string[] args) protected object Failure(string input, string[] args)