adds support for callback commands to update the command history
This commit is contained in:
parent
2a554925c3
commit
2ec6055610
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue