Esempio n. 1
0
        private Task HandleReady()
        {
            return(Task.Run(async() =>
            {
                Logger.Log(LogSeverity.Debug, $"Event", "Ready");

                await _client.SetGameAsync("Type $support");

                Documentation.CreateAndSave(_commandService);

                foreach (var module in _commandService.Modules)
                {
                    foreach (var command in module.Commands)
                    {
                        _statistics.CommandUsage.TryAdd(command.Name, 0);
                    }
                }
            }));
        }