onCommand method
void
onCommand(})
Implementation
void onCommand(String command, MessageFn exec,
{Iterable<FutureOr<bool> Function()>? middlewares}) {
_checkKey([command]);
_one[command] = exec;
this.middlewares[exec] = middlewares;
}