initial commit
This commit is contained in:
commit
61b0fdf733
3 changed files with 44 additions and 0 deletions
25
Program.cs
Normal file
25
Program.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using dotenv.net;
|
||||
using dotenv.net.Utilities;
|
||||
using DSharpPlus;
|
||||
|
||||
namespace KBot;
|
||||
|
||||
class Program
|
||||
{
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
DotEnv.Load();
|
||||
|
||||
var discord = new DiscordClient(
|
||||
new DiscordConfiguration()
|
||||
{
|
||||
Token = EnvReader.GetStringValue("DISCORD_TOKEN"),
|
||||
TokenType = TokenType.Bot,
|
||||
Intents = DiscordIntents.AllUnprivileged | DiscordIntents.MessageContents,
|
||||
}
|
||||
);
|
||||
|
||||
await discord.ConnectAsync(new DSharpPlus.Entities.DiscordActivity("bing chillin"));
|
||||
await Task.Delay(-1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue