Update bot to include a enable and disable command

This commit is contained in:
Zontreck 2020-07-28 00:52:04 -07:00
parent 20373ae79b
commit 2496106f90
4 changed files with 42 additions and 3 deletions

View file

@ -228,7 +228,11 @@ namespace Bot.CommandSystem
}
else
{
if (MainConfiguration.Instance.DisabledCommands.Contains(cgX.Command))
{
BaseCommands.MH(source, user, "Error: That command is disabled");
return;
}
var ovj = Activator.CreateInstance(cgX.AssignedMethod.DeclaringType);
string[] additionalArgs = new string[cgX.arguments];
IgnoreCount = cgX.arguments;