Esempio n. 1
0
 private void LoadDefaultCommands()
 {
     _commandsList = new List <IBotCommand>()
     {
         new BotCommand("pingcmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "ping"),
                        PingCommand),
         new BotCommand("ctrlcmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "ctrl") &
                        RuleGenerator.UserByID(_superUserID),
                        CtrlCommand),
         new BotCommand("rollcmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "roll"),
                        RollCommand),
         new BotCommand("yesnocmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "yesno"),
                        BinaryChoiceCommand),
         new BotCommand("magic8ballcmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "8ball"),
                        Magic8BallCommand),
         new BotCommand("emojistatscmd",
                        RuleGenerator.PrefixatedCommand(_prefix, "emojistats") &
                        RuleGenerator.RoleByID(455287765995618304u), // VV
                        EmojiStatsCmd)
     };
 }