diff --git a/.env.example b/.env.example index 9b006e2..4f09527 100644 --- a/.env.example +++ b/.env.example @@ -27,6 +27,11 @@ PREFIX=& # Optional ########### +# Put the emoji for processing messages here +# Example: +# PROCESSING_EMOJI= +PROCESSING_EMOJI= + # Put Cat API token here CAT= # Put Mashape/RapidAPI key here diff --git a/commands/caption.js b/commands/caption.js index b6642c9..8922e62 100644 --- a/commands/caption.js +++ b/commands/caption.js @@ -5,7 +5,7 @@ exports.run = async (message, args) => { if (image === undefined) return `${message.author.mention}, you need to provide an image/GIF to add a caption!`; const newArgs = args.filter(item => !item.includes(image.url) ); if (args.length === 0) return `${message.author.mention}, you need to provide some text to add a caption!`; - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const { buffer, type } = await magick.run({ cmd: "caption", path: image.path, diff --git a/commands/caption2.js b/commands/caption2.js index 5e68eab..bc4c206 100644 --- a/commands/caption2.js +++ b/commands/caption2.js @@ -5,7 +5,7 @@ exports.run = async (message, args) => { const image = await require("../utils/imagedetect.js")(message); if (image === undefined) return `${message.author.mention}, you need to provide an image/GIF to add a caption!`; const newArgs = args.filter(item => !item.includes(image.url) ); - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const { buffer, type } = await magick.run({ cmd: "captionTwo", path: image.path, diff --git a/commands/globe.js b/commands/globe.js index 3a89fe4..c11026b 100644 --- a/commands/globe.js +++ b/commands/globe.js @@ -3,7 +3,7 @@ const magick = require("../utils/image.js"); exports.run = async (message) => { const image = await require("../utils/imagedetect.js")(message); if (image === undefined) return `${message.author.mention}, you need to provide an image to spin!`; - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const { buffer } = await magick.run({ cmd: "globe", path: image.path, diff --git a/commands/magik.js b/commands/magik.js index 49fa5f8..3f9dbab 100644 --- a/commands/magik.js +++ b/commands/magik.js @@ -3,7 +3,7 @@ const magick = require("../utils/image.js"); exports.run = async (message) => { const image = await require("../utils/imagedetect.js")(message); if (image === undefined) return `${message.author.mention}, you need to provide an image to add some magik!`; - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const { buffer, type } = await magick.run({ cmd: "magik", path: image.path, diff --git a/commands/motivate.js b/commands/motivate.js index 7558cf9..c38d682 100644 --- a/commands/motivate.js +++ b/commands/motivate.js @@ -5,7 +5,7 @@ exports.run = async (message, args) => { if (image === undefined) return `${message.author.mention}, you need to provide an image/GIF to make a motivational poster!`; const newArgs = args.filter(item => !item.includes(image.url) ); if (args.length === 0) return `${message.author.mention}, you need to provide some text to make a motivational poster!`; - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const [topText, bottomText] = newArgs.join(" ").split(/(? elem.trim()); const { buffer, type } = await magick.run({ cmd: "motivate", diff --git a/commands/spin.js b/commands/spin.js index 2b122ef..c25ee31 100644 --- a/commands/spin.js +++ b/commands/spin.js @@ -3,7 +3,7 @@ const magick = require("../utils/image.js"); exports.run = async (message) => { const image = await require("../utils/imagedetect.js")(message); if (image === undefined) return `${message.author.mention}, you need to provide an image to spin!`; - const processMessage = await message.channel.createMessage(" Processing... This might take a while"); + const processMessage = await message.channel.createMessage(`${process.env.PROCESSING_EMOJI || ""} Processing... This might take a while`); const { buffer } = await magick.run({ cmd: "spin", path: image.path,