i hyperfocused and here is v1
This commit is contained in:
parent
8f43e6a6a9
commit
4090fd621e
34 changed files with 4135 additions and 22 deletions
15
apps/bot/src/main.ts
Normal file
15
apps/bot/src/main.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import "dotenv/config";
|
||||
|
||||
import { SapphireClient } from "@sapphire/framework";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
if (!process.env.DISCORD_BOT_TOKEN) {
|
||||
throw new Error("DISCORD_BOT_TOKEN is not defined");
|
||||
}
|
||||
|
||||
const client = new SapphireClient({
|
||||
intents: [],
|
||||
baseUserDirectory: resolve(import.meta.dirname),
|
||||
});
|
||||
|
||||
client.login(process.env.DISCORD_BOT_TOKEN);
|
||||
Loading…
Add table
Add a link
Reference in a new issue