コード例 #1
0
ファイル: Bot.cs プロジェクト: Citillara/CitiBot
 public Bot(BotSettings settings)
 {
     m_PluginManager = new PluginManager();
     m_BotSettings = settings;
     m_BotSettings.Plugins.ToList().ForEach(p => m_PluginManager.AddPlugin(p.PluginName));
     m_PluginManager.LoadAllPlugins();
 }
コード例 #2
0
ファイル: CookieGiver.cs プロジェクト: Citillara/CitiBot
        public void OnLoad(PluginManager pluginManager)
        {
            pluginManager.RegisterCommand("!cookie", GiveCookie);
            pluginManager.RegisterCommand("!cookies", GiveCookie);
            pluginManager.RegisterCommand("!welcomecookie", GiveCookie);
            pluginManager.RegisterCommand("!lovecookie", GiveCookie);
            pluginManager.RegisterCommand("!wrcookie", GiveCookie);
            pluginManager.RegisterCommand("!crashcookie", GiveCookie);

            pluginManager.RegisterCommand("!rank", DisplayCookieCount);
            pluginManager.RegisterCommand("!cookierank", DisplayCookieCount);
            pluginManager.RegisterCommand("!cookiecount", DisplayCookieCount);

            pluginManager.RegisterCommand("!ranks", DisplayCookieCountLink);
            pluginManager.RegisterCommand("!globalrank", DisplayCookieCountLink);

            pluginManager.RegisterCommand("!flavours", DisplayCookieFlavours);
            pluginManager.RegisterCommand("!flavors", DisplayCookieFlavours);

            pluginManager.RegisterCommand("!sendcookie", SendCookies);
            pluginManager.RegisterCommand("!givecookie", SendCookies);
            pluginManager.RegisterCommand("!cookiesend", SendCookies);
            pluginManager.RegisterCommand("!cookiegive", SendCookies);

            pluginManager.RegisterCommand("!stealcookie", StealCookies);
            pluginManager.RegisterCommand("!stealcookies", StealCookies);

            pluginManager.RegisterCommand("!bribe", SendYoshi);
            pluginManager.RegisterCommand("!yoshi", SendYoshi);
            pluginManager.RegisterCommand("!bribeyoshi", SendYoshi);
            pluginManager.RegisterCommand("!yoshibribe", SendYoshi);

            pluginManager.RegisterCommand("!stealdelay", ChangeDelays);
            pluginManager.RegisterCommand("!bribedelay", ChangeDelays);
            pluginManager.RegisterCommand("!cookiedelay", ChangeDelays);

            pluginManager.RegisterCommand("!addcookie", AddCookieFlavor);
            pluginManager.RegisterCommand("!newcookie", AddCookieFlavor);

            pluginManager.RegisterCommand("!dbcookiecount", DisplayDatabaseCookieCount);
            pluginManager.RegisterCommand("!top10", DisplayTop10);
        }
コード例 #3
0
ファイル: Dog.cs プロジェクト: Citillara/CitiBot
 public void OnLoad(PluginManager pluginManager)
 {
     pluginManager.RegisterCommand("!dig2", Dig);
 }
コード例 #4
0
ファイル: GenericCommands.cs プロジェクト: Citillara/CitiBot
 public void OnLoad(PluginManager pluginManager)
 {
     pluginManager.RegisterCommand("!bug", DoBug);
     pluginManager.RegisterCommand("!join", DoJoin);
     pluginManager.RegisterCommand("!part", DoPart);
     pluginManager.RegisterCommand("!pyramid", DoPyramid);
     pluginManager.RegisterCommand("!raid", DoRaid);
     pluginManager.RegisterCommand("!raidmessage", DoRaidMessage);
     pluginManager.RegisterCommand("!d2", DoRoll);
     pluginManager.RegisterCommand("!d4", DoRoll);
     pluginManager.RegisterCommand("!d6", DoRoll);
     pluginManager.RegisterCommand("!d8", DoRoll);
     pluginManager.RegisterCommand("!d10", DoRoll);
     pluginManager.RegisterCommand("!d12", DoRoll);
     pluginManager.RegisterCommand("!d20", DoRoll);
     pluginManager.RegisterCommand("!d100", DoRoll);
     pluginManager.RegisterCommand("!roll", DoRoll);
     pluginManager.RegisterCommand("!timediff", DoTimeDiff);
     pluginManager.RegisterCommand("!uptime", DoUptime);
     pluginManager.RegisterCommand("!version", DoVersion);
 }