summary refs log tree commit diff
path: root/slowcord/bot/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'slowcord/bot/src/index.ts')
-rw-r--r--slowcord/bot/src/index.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/slowcord/bot/src/index.ts b/slowcord/bot/src/index.ts
new file mode 100644
index 00000000..07a6aa7c
--- /dev/null
+++ b/slowcord/bot/src/index.ts
@@ -0,0 +1,21 @@
+import "dotenv/config";
+import Fosscord from "fosscord-gopnik";
+import Bot from "./Bot";
+
+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