From d6f0edc11231c487da3895cf8dd9a463ffbb27c8 Mon Sep 17 00:00:00 2001 From: Skillz Date: Sun, 22 Mar 2020 14:16:02 -0400 Subject: [PATCH] cleanup --- mod.ts | 21 ++++++++------------- module/request_manager.ts | 2 -- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/mod.ts b/mod.ts index 7c6458343..016a489c2 100644 --- a/mod.ts +++ b/mod.ts @@ -3,16 +3,11 @@ import { configs } from "./configs.ts" import { Intents } from "./types/options.ts" import { logYellow } from "./utils/logger.ts" -const startup = async () => { - new Client({ - token: configs.token, - bot_id: "675412054529540107", - intents: [Intents.GUILDS, Intents.GUILD_MESSAGES], - event_handlers: { - ready: () => logYellow("Bot ready emitted"), - channel_create: channel => console.log(channel.permission_overwrites() || "can;t find") - } - }) -} - -startup() +new Client({ + token: configs.token, + bot_id: "675412054529540107", + intents: [Intents.GUILDS, Intents.GUILD_MESSAGES], + event_handlers: { + ready: () => logYellow("Bot ready emitted") + } +}) diff --git a/module/request_manager.ts b/module/request_manager.ts index d413f6cf3..61378b367 100644 --- a/module/request_manager.ts +++ b/module/request_manager.ts @@ -2,7 +2,6 @@ import { RequestMethod } from "../types/fetch.ts" import { authorization } from "./client.ts" import { sleep } from "../utils/utils.ts" -// const queue = new Map() const ratelimited_paths = new Map() export interface Rate_Limited_Path { @@ -42,7 +41,6 @@ export const Request_Manager = { } const create_request_body = (body: any, method?: RequestMethod) => { - // TODO: REASON should be added as a header if present in the body return { headers: { Authorization: authorization,