fix: token import for tests

This commit is contained in:
Skillz4Killz
2021-11-12 21:40:28 +00:00
committed by GitHub
parent 7866fa64a9
commit c403a0e7eb

View File

@@ -1,5 +1,4 @@
import { memoryBenchmarks } from "../benchmarks/index.ts";
import { TOKEN } from "../configs.ts";
import {
channelOverwriteHasPermission,
createBot,
@@ -75,8 +74,8 @@ Deno.test({
fn: async (t) => {
let startedAt = 0;
const bot = createBot({
token: TOKEN || Deno.env.get("DISCORD_TOKEN"),
// token: Deno.env.get("DISCORD_TOKEN")!,
// token: TOKEN || Deno.env.get("DISCORD_TOKEN"),
token: Deno.env.get("DISCORD_TOKEN")!,
// TEST BOT
botId: 770381961553510451n,
// DD bot