clsListNodes.cs 776 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using DSharpPlus.EventArgs;
  4. namespace TFABot.DiscordBot.Commands
  5. {
  6. public class clsListNodes : IBotCommand
  7. {
  8. public String[] MatchCommand {get; private set;}
  9. public String[] MatchSubstring {get; private set;}
  10. public Regex[] MatchRegex {get; private set;}
  11. public clsListNodes()
  12. {
  13. MatchCommand = new []{"nodes"};
  14. }
  15. public void Run(MessageCreateEventArgs e)
  16. {
  17. e.Channel.SendMessageAsync($"```{TFABot.Program.GetNodes()}```");
  18. }
  19. public String HelpString
  20. {
  21. get
  22. {
  23. return @"nodes\tList nodes.";
  24. }
  25. }
  26. }
  27. }