Пример #1
0
        public ReactionRoleService(ILogger <ReactionRoleService> logger, DiscordSocketClient discord, RootController root)
        {
            ReactionRoles = new List <ReactionRole>();

            _logger  = logger;
            _discord = discord;
            _root    = root;
        }
Пример #2
0
 public PointEarningService(ILogger <PointEarningService> logger, CommandHandlingService commands, DiscordSocketClient discord, PointsController points, RootController root)
 {
     Actions   = new ConcurrentDictionary <string, Func <PointLog, Task> >();
     _logger   = logger;
     _commands = commands;
     _discord  = discord;
     _points   = points;
     _root     = root;
 }
Пример #3
0
        public PointEarningService(ILogger <PointEarningService> logger, DiscordSocketClient discord, PointsController points, RootController root)
        {
            Actions       = new ConcurrentDictionary <string, Func <IEnumerable <PointLog>, Task> >();
            ActiveWallets = new ConcurrentDictionary <ulong, Wallet>();

            _timer = new Timer(OnTimer, null, TimeSpan.Zero, TimeSpan.FromMinutes(5));

            _logger  = logger;
            _discord = discord;
            _points  = points;
            _root    = root;
        }
Пример #4
0
 public CommandHandlingService(
     ILogger <CommandHandlingService> logger,
     DiscordSocketClient discord,
     CommandService commands,
     RootController root,
     IServiceProvider provider)
 {
     _logger   = logger;
     _discord  = discord;
     _commands = commands;
     _root     = root;
     _provider = provider;
 }
Пример #5
0
 public DogeyModuleBase(RootController root)
 {
     _root = root;
 }
Пример #6
0
 public GuildBanService(ILogger <GuildBanService> logger, DiscordSocketClient discord, RootController root)
 {
     _logger  = logger;
     _discord = discord;
     _root    = root;
 }