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;
 }
Exemple #2
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;
        }