Example #1
0
        public ReactionRoleModule(ILoggingService loggingService, ReactRoleService reactRoleService, CommandHandlingService commandService)
        {
            _logging          = loggingService;
            _reactRoleService = reactRoleService;

            // Generates an individual command list for the Reaction Roles
            Task.Run(async() => _commandList = await commandService.GetCommandList("ReactRole"));
        }
Example #2
0
        public TicketModule(Settings.Deserialized.Settings settings, CommandHandlingService commandHandlingService)
        {
            _settings = settings;

            Task.Run(async() =>
            {
                var commands = await commandHandlingService.GetCommandList("TicketModule", true, true, false);
                _commandList = commands.MessageSplitToSize();
            });
        }
 public ModerationModule(ILoggingService logging, UserService user,
                         DatabaseService database, Rules rules, Settings.Deserialized.Settings settings, CommandHandlingService commandHandlingService)
 {
     _logging  = logging;
     _user     = user;
     _database = database;
     _rules    = rules;
     _settings = settings;
     Task.Run(async() =>
     {
         var commands =
             await commandHandlingService.GetCommandList("ModerationModule", true, true, false);
         _commandList = commands.MessageSplitToSize();
     });
 }