public Task <CommandResponse> Action(BotCommandArguments args) { if (args.Arguments.Length < 2) { return(Task.FromResult(new CommandResponse(args.Message, false, "Too few arguments."))); } if (args.Arguments.Length > 2) { return(Task.FromResult(new CommandResponse(args.Message, false, "Too many arguments."))); } try { Service.ForceCheck(args.Arguments[1]); return(Task.FromResult(new CommandResponse(args.Message, false, $"Succesfully forced routine {args.Arguments[1]} to run"))); } catch (ArgumentException e) { return(Task.FromResult(new CommandResponse(args.Message, false, e.Message))); } }
public Task <CommandResponse> ActionReply(BotCommandArguments args) { throw new NotImplementedException(); }