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(); }
public virtual void ReloadConfiguration(JObject newConfig) { Config = new TextCommandsConfig(newConfig); PostConfigReload(); }