Ejemplo n.º 1
0
        public ExternalHoursService(DiscordSocketClient client, IConfigurationRoot config, CommandHandler commands)
        {
            _client   = client;
            _config   = config;
            _commands = commands;
            _storage  = Storage.GetInstance();

            _timer = new Timer(async _ =>
            {
                await CheckExternalHours();
            },
                               null,
                               TimeSpan.FromMinutes(1),
                               TimeSpan.FromMinutes(1));
        }