Beispiel #1
0
        public async Task RunAsync()
        {
            _DiscordWrapper.AddLogHandler(LogReceived);
            await _DiscordWrapper.LogInAsync();

            await _DiscordWrapper.StartAsync();

            await _Commands.AddModulesAsync(Assembly.GetEntryAssembly(), _Services);

            _ModuleNames      = DetermineModuleNames();
            _PrefixDictionary = new Dictionary <decimal, string>(); //TODO
            _DiscordWrapper.AddMessageReceivedHandler(MessageReceived);
            var playingGame = _ConfigWrapper["PlayingGame"];
            await _DiscordWrapper.SetGameAsync(playingGame);
        }
Beispiel #2
0
 public Task LogInAsync() => _DiscordWrapper.LogInAsync();