removing janky debugging

This commit is contained in:
= 2021-07-06 17:42:19 -04:00
parent 5dc2a1ab53
commit a9502d4f66
2 changed files with 1 additions and 6 deletions

View File

@ -3,7 +3,6 @@ const fs = require('fs');
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
const gifFiles = fs.readdirSync('./gifs').filter(file => file.endsWith('.js')); const gifFiles = fs.readdirSync('./gifs').filter(file => file.endsWith('.js'));
const pastaFiles = fs.readdirSync('./pastas').filter(file => file.endsWith('.js')); const pastaFiles = fs.readdirSync('./pastas').filter(file => file.endsWith('.js'));
const debug = true;
module.exports = { module.exports = {
getCommandFiles(client) { getCommandFiles(client) {
@ -12,7 +11,6 @@ module.exports = {
const command = require(`./commands/${file}`); const command = require(`./commands/${file}`);
client.commands.set(command.name, command); client.commands.set(command.name, command);
} }
if (debug) console.log(client.commands);
}, },
getGifFiles(client) { getGifFiles(client) {
client.gifs = new Discord.Collection(); client.gifs = new Discord.Collection();
@ -20,7 +18,6 @@ module.exports = {
const gif = require(`./gifs/${file}`); const gif = require(`./gifs/${file}`);
client.gifs.set(gif.name, gif); client.gifs.set(gif.name, gif);
} }
if (debug) console.log(client.gifs);
}, },
getPastaFiles(client) { getPastaFiles(client) {
client.pastas = new Discord.Collection(); client.pastas = new Discord.Collection();
@ -28,7 +25,6 @@ module.exports = {
const pasta = require(`./pastas/${file}`); const pasta = require(`./pastas/${file}`);
client.pastas.set(pasta.name, pasta); client.pastas.set(pasta.name, pasta);
} }
if (debug) console.log(client.pastas);
}, },
getFileInfo(content) { getFileInfo(content) {
// const finalPeriod = content.search(/\.(?:.(?!\\))+$/gim); // const finalPeriod = content.search(/\.(?:.(?!\\))+$/gim);

View File

@ -5,9 +5,8 @@ dotenv.config();
const Discord = require('discord.js'); const Discord = require('discord.js');
const client = new Discord.Client(); const client = new Discord.Client();
const debug = true;
// const config = require('./config.json'); // const config = require('./config.json');
const { prefix, logChannel, bootMessage, shutdownMessage } = require('./config.json'); // const { prefix, logChannel, bootMessage, shutdownMessage } = require('./config.json');
// const owner = process.env.ownerID; // const owner = process.env.ownerID;
const giphy = require('giphy-api')(process.env.giphyAPIKey); const giphy = require('giphy-api')(process.env.giphyAPIKey);