Running 2 differents files on the same bot ?
Hello, i have multiple /command on the same Bot, one of them use collectors and i would like to separate this command from all the others to be able to add other simple commands in development without shutdown that collector command. Is someone can tell me if that's possible?
(i have a conflict between the both file)
9 Replies
• 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.• discord.js :[email protected]
• node : v17.3.0
• Explain what exactly your issue is : running 2 script like this. The other one which have a collector, have the condition
To upload more easily new features for my bot in the future, i would like to separate the "poll" which need to be always online without interruption,
But by doing this, when i run /poll, it shutdown the script above by saying that :
My question is, is that possible to run 2 /commands scripts properly ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
If i need to implement other commands without shutdown a /slashcommand which hold an active collector ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I mean, if i add other slash command to the client, i need to restart the script to let the bot take those new commands into consideration, no ? But by doing that, the /poll collector will not be active anymore
That's why, i try to separate one slash commands from all the others
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I see, was seduce by that collectors stuff, easier to maintain and more focus on the messages (ressources save).
I will redo my code into the traditional way then