From 7593f2386765743e15a0d78323d1a9536bfa8fc2 Mon Sep 17 00:00:00 2001 From: PapaSnags Date: Thu, 19 Nov 2020 11:04:22 +1100 Subject: [PATCH] removed unnecessary requirements --- source/commands/help.js | 3 +-- source/commands/profile.js | 2 -- source/commands/repo.js | 2 -- source/main.js | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/source/commands/help.js b/source/commands/help.js index e595180..716318e 100644 --- a/source/commands/help.js +++ b/source/commands/help.js @@ -1,6 +1,5 @@ const discord = require ("discord.js"); -const client = new discord.Client(); -const chalk = require("chalk"); + exports.run = (client, message, args) =>{ const help = new discord.MessageEmbed() .setColor('#b434eb') diff --git a/source/commands/profile.js b/source/commands/profile.js index a793c91..0246288 100644 --- a/source/commands/profile.js +++ b/source/commands/profile.js @@ -1,6 +1,4 @@ const discord = require ("discord.js"); -const client = new discord.Client(); -const chalk = require("chalk"); exports.run = (client, message, args) =>{ var request = require("request"); diff --git a/source/commands/repo.js b/source/commands/repo.js index 696b904..48478e1 100644 --- a/source/commands/repo.js +++ b/source/commands/repo.js @@ -1,6 +1,4 @@ const discord = require ("discord.js"); -const client = new discord.Client(); -const chalk = require("chalk"); const Pagination = require('discord-paginationembed'); exports.run = (client, message, args) =>{ diff --git a/source/main.js b/source/main.js index 3fcceb0..b73a6b5 100644 --- a/source/main.js +++ b/source/main.js @@ -1,7 +1,6 @@ const Discord = require("discord.js"); const Enmap = require("enmap"); const fs = require("fs"); -const moment = require('moment') const client = new Discord.Client(); const config = require('./cfg/config.json')