Example #1
0
 public void RegisterCommands(DiscordScriptHost ActiveHost)
 {
     ActiveHost.RegisterCommand("8bap", "version", help, Shake);
     ActiveHost.RegisterCommand("8bap", "really?", "really really Shake the 8bap", ReallyReallyShake);
     ActiveHost.RegisterCommand("8bap", "really", "really Shake the 8bap", ReallyShake);
     ActiveHost.RegisterCommand("8bap", "Shake the 8bap", Shake);
 }
Example #2
0
 public void RegisterCommands(DiscordScriptHost ActiveHost)
 {
     ActiveHost.RegisterCommand("reminder", "version", help, (param, e) => { });
     ActiveHost.RegisterCommand("reminder", "time", "Display the current Utc time the reminder is using", Time);
     ActiveHost.RegisterCommand("reminder", "(list | view <tag>)", "lists all the active announcements and when they will next trigger or view the content of a tag", List);
     ActiveHost.RegisterCommand("reminder", "new <tag> (in <time> [repeat] | at <time>) <content>", "Add a new announcement note: content should be wrapped in \"\"", New);
     ActiveHost.RegisterCommand("reminder", "remove <tag>", "Removes the specified announcement from the list", Remove);
 }
Example #3
0
 public void RegisterCommands(DiscordScriptHost ActiveHost)
 {
     ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "ping", "Test the bots ping with discord", Ping);
     ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "server (list|leave <id>)", "Server information", ServerInfo);
     ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "set (((name|playing) <value>) | avatar)", "Sets one of the settings", Set);
     ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "get (logs|avatar [<size>])", "Gets one of the settings", Get);
     //ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "reboot", "reboots the server (must have launched through bot console", Reboot);
     ActiveHost.RegisterAdminCommand(DiscordAdmin.DM, "admin", "test [exception|download|disconnect]", "Run Bot Unit Tests", AdminTests);
     ActiveHost.RegisterAdminEvent <SocketMessage>(DiscordAdmin.DM, attachRule, DiscordEventType.PrivateMessageRecieved, AdminTests);
 }
Example #4
0
        public void Initalise(DiscordScriptHost ActiveHost)
        {
            m_host = ActiveHost;

            if (!Directory.Exists(ReminderStoreFolder))
            {
                Directory.CreateDirectory(ReminderStoreFolder);
            }

            LoadAnnouncements();

            timerTick = new Timer(TickTimer, null, 0, 1.Minute());
        }
Example #5
0
 public void Initalise(DiscordScriptHost ActiveHost)
 {
     m_host = ActiveHost;
 }
Example #6
0
 public void RegisterCommands(DiscordScriptHost ActiveHost)
 {
     ActiveHost.RegisterCommand("hello", "test", MessageRecieved);
 }