Exemplo n.º 1
0
        public TextCommandsPlugin(IConnectionManager connMgr, JObject config)
        {
            ConnectionManager = connMgr;
            Config            = new TextCommandsConfig(config);
            RNG = new Random();
            ChannelsToLastMessageAuthors = new Dictionary <string, LinkedList <string> >();

            ConnectionManager.ChannelMessage += HandleChannelMessage;
            ConnectionManager.QueryMessage   += HandlePrivateMessage;

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