Example #1
0
        public CensorshipService(IServiceProvider services) : base(services)
        {
            _config = services.GetRequiredService <ConfigService>();

            Words = JsonConvert.DeserializeObject <HashSet <string> >(File.ReadAllText(BAD_WORDS_PATH));
        }
Example #2
0
        public InviteBlockerService(IServiceProvider services) : base(services)
        {
            _config = services.GetRequiredService <ConfigService>();

            _client.MessageReceived += BlockInvites;
        }