Ejemplo n.º 1
0
        //Cause of course now you have to have Oauth
        public SuiBot_ChannelInstance(string Channel, string Oauth, SuiBot SuiBotInstance, Storage.ChannelConfig ConfigInstance)
        {
            this.Channel                  = Channel;
            this.ConfigInstance           = ConfigInstance;
            this.CoreConfigInstance       = SuiBotInstance.BotCoreConfig;
            this.SuiBotInstance           = SuiBotInstance;
            this.QuotesInstance           = new Components.Quotes(this);
            this.IntervalMessagesInstance = new Components.IntervalMessages(this);
            this.Leaderboards             = new Components.Leaderboards(this);
            this.ChatFiltering            = new Components.ChatFiltering(this);
            this.TwitchStatus             = new TwitchStatusUpdate(this, Oauth);
            this.Cvars         = new Components.CustomCvars(this);
            this.UserCooldowns = new Dictionary <string, DateTime>();
            this.ViewerPb      = new Components.ViewerPB(this);
            this.PCGW          = new Components.PCGW(this, TwitchStatus);
            this.GenericUtil   = new Components.GenericUtil(this, TwitchStatus);

            //Other
            MemeComponents = new Components.Other._MemeComponents(this, ConfigInstance.MemeComponents);
        }
Ejemplo n.º 2
0
 public void ConnectToChannel(string channelToJoin, Storage.ChannelConfig channelcfg)
 {
     MeebyIrcClient.RfcJoin("#" + channelToJoin);
     this.OnChannelJoining?.Invoke(channelToJoin);
     ActiveChannels.Add("#" + channelToJoin, new SuiBot_ChannelInstance(channelToJoin, BotConnectionConfig.Password, this, channelcfg));
 }