1 files changed, 20 insertions, 0 deletions
diff --git a/slowcord/bot/src/index.ts b/slowcord/bot/src/index.ts
new file mode 100644
index 00000000..2113b3a8
--- /dev/null
+++ b/slowcord/bot/src/index.ts
@@ -0,0 +1,20 @@
+import "dotenv/config";
+import Fosscord from "fosscord-gopnik";
+import Bot from "./Bot.js"; // huh?
+
+const client = new Fosscord.Client({
+ intents: ["GUILD_MESSAGES"],
+
+ http: {
+ api: process.env.ENDPOINT_API,
+ cdn: process.env.ENDPOINT_CDN,
+ invite: process.env.ENDPOINT_INV,
+ },
+});
+
+const bot = new Bot(client);
+
+client.on("ready", bot.onReady);
+client.on("messageCreate", bot.onMessageCreate);
+
+client.login(process.env.TOKEN);
\ No newline at end of file
|