public async Task <string> ListModules(object sender, CommandHandlerEventArgs e) { Console.WriteLine("We're getting there..."); var modules = await SendWait <ModuleList>(new ListModules()); return($"{modules.Modules.Count} module(s) loaded: [{string.Join(", ", modules.Modules)}]"); }
public async Task <string> GetModuleInfo(object sender, CommandHandlerEventArgs e) { var module_name = e.Arguments; var module = await SendWait <ModuleInfo>(new GetModuleInfo(module_name)); return($"{module.ClientHello.HumanReadableName} " + $"({string.Join(", ", new[] { module.ClientHello.Version, module.ClientHello.Language, module.ClientHello.License }.Where(t => !string.IsNullOrEmpty(t)))}) " + $"has been up for {Utilities.TimeSpanToPrettyString(module.Uptime)} and is {module.Health.ToString().ToLower()}"); }
public string CanConfirm(object sender, CommandHandlerEventArgs e) => "can confirm";
public string Test(object sender, CommandHandlerEventArgs e) { //Console.WriteLine(e.Contents); return("Test successful!"); }