diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/commands/react.js b/commands/react.js index f25b254..dbfd35d 100644 --- a/commands/react.js +++ b/commands/react.js @@ -63,7 +63,7 @@ module.exports = { const getRandomDelay = () => Math.floor(Math.random() * (5000 - 2000 + 1)) + 2000; message.client.reactListener = async (msg) => { - if (message.client.targetReactUserIds.includes(msg.author.id)) { + if (message.client.targetReactUserIds && message.client.targetReactUserIds.includes(msg.author.id)) { for (const emoji of emojis) { try { const delay = getRandomDelay();