Make pagination use interactions instead of reactions, filter out base64 images in image

This commit is contained in:
Essem 2021-08-12 18:45:17 -05:00
parent 5c0cb6463a
commit da709c485f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
5 changed files with 119 additions and 40 deletions

View file

@ -8,7 +8,7 @@ const { clean } = require("../utils/misc.js");
// run when someone sends a message
module.exports = async (client, cluster, worker, ipc, message) => {
// ignore dms and other bots
// ignore other bots
if (message.author.bot) return;
// don't run command if bot can't send messages
@ -47,7 +47,7 @@ module.exports = async (client, cluster, worker, ipc, message) => {
}
// ignore other stuff
if (message.content.startsWith(prefix) === false) return;
if (!message.content.startsWith(prefix)) return;
// separate commands and args
const replace = isMention ? `@${client.user.username} ` : prefix;