Exemple #1
0
        public void OnStartup(Object o, StartupEventArgs e)
        {
            youtubeManager = new YoutubeManager();
            redditManager  = new RedditManager();
            twitchManager  = new TwitchManager();

            e.ChannelManager.AddManager(youtubeManager);
            e.ChannelManager.AddManager(redditManager);
            e.ChannelManager.AddManager(twitchManager);
        }
Exemple #2
0
        public Commands(YoutubeManager yt, TwitchManager tw, RedditManager rd)
        {
            commandList = new List <Command>();
            JfsPing.CommandMessageHandler += OnCommandMessage;

            commandList.Add(new CommandResponse("test", Rank.ADMIN, "AHHHHHH"));
            commandList.Add(new CommandReloadUsers("reloadusers", Rank.ANYONE));
            commandList.Add(new CommandSetRank("SetRank", Rank.ADMIN));
            commandList.Add(new CommandAddYoutubeChannel("AddYoutube", Rank.ADMIN, yt));
            commandList.Add(new CommandDebugForceChannel("ForceYoutube", Rank.ADMIN, yt));
            commandList.Add(new CommandHelp("Help", Rank.ANYONE, this));
            commandList.Add(new CommandCommands("Commands", Rank.ADMIN, this));
            commandList.Add(new CommandAddTwitch("AddTwitch", Rank.ADMIN, tw));
            commandList.Add(new CommandIsLive("IsLive", Rank.ANYONE, tw));
            commandList.Add(new CommandAddReddit("AddReddit", Rank.ADMIN, rd));
        }
 public CommandAddReddit(string name, Rank requiredRank, RedditManager manager) : base(name, requiredRank)
 {
     this.manager = manager;
 }