adds support for callback commands to update the command history

This commit is contained in:
Madpeter 2020-04-26 01:36:51 +01:00
parent 2a554925c3
commit 2ec6055610

View file

@ -269,9 +269,13 @@ namespace BSB.Commands
{ {
bot = setBot; 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) 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) public virtual bool CallFunction(string[] args)
{ {