#bot confuses messages between servers

9 messages · Page 1 of 1 (latest)

compact kindle
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

dim igloo
#

I logged generated_text and guildId to the console to make sure

polar iron
#

Confuses in what sense

dim igloo
# polar iron Confuses in what sense

let's say there are 2 texts and 2 guilds
bot handles event from 1 guild, then bot generates text and trying to send it to 1 guild, BUT message comes to 2 server

#

and vice versa

#

whole handler

#

I literally have no idea how this happens

#

maybe it's because I'm using sharding?

outer spruce
#

Where do you declare generated_text and those other variables? If you don’t they‘d be global vars by default and get overwritten by each concurrent call of that function