Exemplo n.º 1
0
        public async Task RunAsync()
        {
            client.Log   += async(LogMessage x) => Console.WriteLine($"[{x.Severity}] {x.Message}");
            client.Ready += async() => await client.SetGameAsync("e:help | https://discordemoji.com", "https://twitch.tv/courierfive", ActivityType.Streaming);

            await discordEmoji.Start();

            await commandHandler.InitializeAsync();

            await client.LoginAsync(TokenType.Bot, configuration.Token);

            await client.StartAsync();

            await Task.Delay(-1);
        }