discord/Test/Program.cs
2024-06-09 18:51:48 +12:00

24 lines
479 B
C#

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();
}
}