using System.Collections.Generic;
using System.Threading.Tasks;
namespace DiscordTutorialBot
DiscordSocketClient _client;
static void Main(string[] args)
=> new Program().StartAsync().GetAwaiter().GetResult();
public async Task StartAsync()
if (Config.bot.token == "" || Config.bot.token == null) return;
_client = new DiscordSocketClient(new DiscordSocketConfig
LogLevel = LogSeverity.Verbose
await _client.LoginAsync(TokenType.Bot, Config.bot.token);
await _client.StartAsync();
_handler = new CommandHandler();
await _handler.InitializeAsync(_client);
private async Task Log(LogMessage msg)
Console.WriteLine(msg.Message);