From 08382400aa438da8025ec7d6bd6f96f45417be35 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Wed, 18 Sep 2024 08:23:57 -0400 Subject: [PATCH] Update .gitignore and react.js --- .gitignore | 1 + commands/react.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore 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();