Replies: 1 comment
-
got solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
see i'm trying to make self bot for (karuta) a currency bot. and i have to react on that (karuta) bot's message and it's reacts but the problem is it's work for only one time self bot react to that (karuta) bot message but second times it react too but i didn't gets the rewards (currency).
my discord id : aprylimon
and here is the code
client.on('messageCreate', async (message) => { const { default: delay } = await import('delay'); try { if (!message.guild) return; if (message.guild.id != '1146720121973387265') return; if (message.author.id == "646937666251915264") { let userId =
<@+ client.user.id +
>; if (message.content.toLowerCase().includes(
${userId} is dropping)) { let reactArr = ['1️⃣', '2️⃣', '3️⃣']; let randomReact = reactArr[Math.floor(Math.random() * reactArr.length)]; await delay(2000); await message.react(randomReact); } } } catch (error) { console.log(error); } });
Beta Was this translation helpful? Give feedback.
All reactions