Example #1
0
        public VitalsPlugin(IConnectionManager connMgr, JObject config)
        {
            ConnectionManager = connMgr;
            Config            = new VitalsConfig(config);
            NameToReader      = new Dictionary <string, IVitalsReader>();

            ConnectionManager.CommandManager.RegisterChannelMessageCommandHandler(
                new Command(
                    CommandUtil.MakeNames("vitals", "vit"),
                    CommandUtil.NoOptions,
                    CommandUtil.MakeArguments(
                        RestTaker.Instance // location
                        ),
                    CommandUtil.MakeTags("fun"),
                    forbiddenFlags: MessageFlags.UserBanned
                    ),
                HandleVitalsCommand
                );

            RecreateReaders();
        }
Example #2
0
 public virtual void ReloadConfiguration(JObject newConfig)
 {
     Config = new VitalsConfig(newConfig);
     PostConfigReload();
 }