コード例 #1
0
ファイル: JfsPing.cs プロジェクト: Lemonszz/JFS_Ping
        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);
        }
コード例 #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));
        }
コード例 #3
0
 public CommandAddYoutubeChannel(string name, Rank requiredRank, YoutubeManager manager) : base(name, requiredRank)
 {
     this.manager = manager;
 }