using Discord; using Test; class Application { public static async Task Main(string[] args) { Client client = new(Config.Token); client.Ready += (client) => { Console.WriteLine(client.User); }; client.MessageCreate += async (client, msg) => { if (msg.Content == "hi") { await msg.Channel.Send("hello"); } }; await client.Login(); } }