mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Merge branch 'fp-attempt-9001' of https://github.com/discordeno/discordeno into fp-attempt-9001
This commit is contained in:
+12
-23
@@ -1,29 +1,20 @@
|
||||
import { TOKEN } from "../configs.ts";
|
||||
import { Bot, createBot, createEventHandlers, startBot } from "../mod.ts";
|
||||
|
||||
Deno.test("[Bot] - Starting Tests", async (t) => {
|
||||
const bot = createBot({
|
||||
token: TOKEN || Deno.env.get('DISCORD_TOKEN'),
|
||||
botId: 0n,
|
||||
events: createEventHandlers({
|
||||
raw: console.log,
|
||||
}),
|
||||
intents: [],
|
||||
})
|
||||
|
||||
await startBot(bot as Bot);
|
||||
|
||||
console.log('Bot online')
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Deno.test("[Bot] - Starting Tests", async (t) => {
|
||||
const bot = createBot({
|
||||
token: TOKEN || Deno.env.get("DISCORD_TOKEN"),
|
||||
botId: 0n,
|
||||
events: createEventHandlers({
|
||||
raw: console.log,
|
||||
}),
|
||||
intents: [],
|
||||
});
|
||||
|
||||
await startBot(bot as Bot);
|
||||
|
||||
console.log("Bot online");
|
||||
});
|
||||
|
||||
// // THE ORDER OF THE IMPORTS IN THIS FILE MATTER!
|
||||
// // DO NOT MOVE THEM UNLESS YOU KNOW WHAT YOUR DOING!
|
||||
@@ -115,5 +106,3 @@ Deno.test("[Bot] - Starting Tests", async (t) => {
|
||||
|
||||
// await delay(3000);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user