コード例 #1
0
ファイル: DiscordCoreModule.cs プロジェクト: Zaexides/ArnoBot
        public DiscordCoreModule()
        {
            ModuleSettings = Settings.Load();

            commandRegistry.Add("invite", new InviteCommand());
            commandRegistry.Add("ping", new PingCommand());
            commandRegistry.Add("setplaying", new SetPlayingCommand());
            commandRegistry.Add("help", new HelpCommand(ModuleSettings.HelpReferenceSite));
        }
コード例 #2
0
ファイル: CoreModule.cs プロジェクト: Zaexides/ArnoBot
 private void InitializeCommands()
 {
     commandRegistry.Add("about", new AboutCommand());
     commandRegistry.Add("echo", new EchoCommand());
 }