I'm trying to get the demo working but I don't get any output (besides the version number)
code
using Discord;
using Discord.WebSocket;
namespace bot
{
public class Program
{
private DiscordSocketClient _client;
private Task Log(LogMessage msg)
{
Console.WriteLine(msg.ToString());
return Task.CompletedTask;
}
public static Task Main(string[] args) => new Program().MainAsync();
public async Task MainAsync()
{
_client = new DiscordSocketClient();
_client.Log += Log;
var token = File.ReadAllText("token.txt");
await _client.LoginAsync(TokenType.Bot, token);
await _client.StartAsync();
// Block this task until the program is closed.
await Task.Delay(-1);
}
}
}
only output I get