diff --git a/commands/gif.js b/commands/gif.js index 3398a41..9fd93bc 100644 --- a/commands/gif.js +++ b/commands/gif.js @@ -1,5 +1,5 @@ const { SlashCommandBuilder } = require('discord.js'); -const help = require('../helpFunctions.js'); +const gifEmbed = require('../gifs.js'); const gifAmount = 50; require('dotenv').config(); @@ -21,14 +21,14 @@ async function getGifEmbed(options) { } catch { const gifs = `https://g.tenor.com/v1/random?key=${process.env.TENOR}&limit=${gifAmount}&contentfilter=${rating}`; - return help.getGifEmbed(gifs, gifAmount); + return gifEmbed.getGifEmbed(gifs, gifAmount); } const searchSplits = search.split(/[ ]+/); const searchKey = searchSplits.join('-'); const gifs = `https://g.tenor.com/v1/search?q=${searchKey}&key=${process.env.TENOR}&limit=${gifAmount}&contentfilter=${rating}`; - return help.getGifEmbed(gifs, gifAmount); + return gifEmbed.getGifEmbed(gifs, gifAmount); } module.exports = { diff --git a/main.js b/main.js index ceec77a..7938f86 100755 --- a/main.js +++ b/main.js @@ -96,6 +96,6 @@ client.on('interactionCreate', async interaction => { } }); -client.login(process.env.TOKEN); +client.login(process.env.DEBUGTOKEN); module.exports = client; \ No newline at end of file