From 583550731ebc2e02eaa98bb2b116d941f6d526c8 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 19 Nov 2021 02:37:49 +0000 Subject: [PATCH] fix: switch to github token --- tests/mod.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/mod.ts b/tests/mod.ts index c480614a7..b145f4da7 100644 --- a/tests/mod.ts +++ b/tests/mod.ts @@ -1,7 +1,6 @@ -import { UNITTEST_TOKEN } from "../configs.ts"; +// import { UNITTEST_TOKEN } from "../configs.ts"; import { memoryBenchmarks } from "../benchmarks/index.ts"; import { - channelOverwriteHasPermission, createBot, createEventHandlers, ChannelTypes, @@ -81,13 +80,13 @@ export const CACHED_COMMUNITY_GUILD_ID = 907350958810480671n; Deno.test({ name: "[Bot] - Starting Tests", fn: async (t) => { - const botId = BigInt(atob(UNITTEST_TOKEN.split(".")[0])); - // const botId = BigInt(atob(token.split(".")[0])); + // const botId = BigInt(atob(UNITTEST_TOKEN.split(".")[0])); + const botId = BigInt(atob(token.split(".")[0])); let startedAt = 0; const bot = createBot({ - token: UNITTEST_TOKEN || Deno.env.get("DISCORD_TOKEN"), - // token: Deno.env.get("DISCORD_TOKEN")!, + // token: UNITTEST_TOKEN || Deno.env.get("DISCORD_TOKEN"), + token: Deno.env.get("DISCORD_TOKEN")!, botId, events: createEventHandlers({ ready: () => {