Merge branch 'fp-attempt-9001' of https://github.com/discordeno/discordeno into fp-attempt-9001

This commit is contained in:
Skillz4Killz
2021-10-25 01:55:56 +00:00
committed by GitHub
12 changed files with 18 additions and 64 deletions
+12 -23
View File
@@ -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);
// }