Exemplo n.º 1
0
        public DebouncePlugin(IConnectionManager connMgr, JObject config)
        {
            ConnectionManager = connMgr;
            Config            = new DebounceConfig(config);
            RegexCache        = new RegexCache();
            RelevantJoins     = new List <JoinQuitEvent>();
            RNG = new Random();

            ConnectionManager.JoinedChannel  += HandleUserJoin;
            ConnectionManager.ChannelMessage += HandleChannelMessageOrAction;
            ConnectionManager.ChannelAction  += HandleChannelMessageOrAction;

            RebuildRegexCache();
        }
Exemplo n.º 2
0
 public virtual void ReloadConfiguration(JObject newConfig)
 {
     Config = new DebounceConfig(newConfig);
     PostConfigReload();
 }