Update bot to include a enable and disable command
This commit is contained in:
parent
20373ae79b
commit
2496106f90
4 changed files with 42 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue