From 2ec6055610426ef122bf5467bba24acf791cc1cb Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sun, 26 Apr 2020 01:36:51 +0100 Subject: [PATCH] adds support for callback commands to update the command history --- Core/Commands/commandlib.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/Commands/commandlib.cs b/Core/Commands/commandlib.cs index 5a4ca5d..7887272 100644 --- a/Core/Commands/commandlib.cs +++ b/Core/Commands/commandlib.cs @@ -269,9 +269,13 @@ namespace BSB.Commands { bot = setBot; } + public virtual void Callback(string[] args, EventArgs e,bool status) + { + bot.CommandHistoryAdd("Callback finished-> " + this.GetType().Name, String.Join(",", args), status); + } public virtual void Callback(string[] args, EventArgs e) { - + bot.CommandHistoryAdd("Callback finished-> " + this.GetType().Name, String.Join(",", args), true); } public virtual bool CallFunction(string[] args) {