I want to run two bots in one project that can work with the same DATABASE if thats possible. Is there any way?
Hey @fnnn, my understanding of bots leads me to believe that if you created two bot clients in your code using different tokens and each connecting to the appropriate event listeners to receive and respond to the various events, you could have both run in the same project.
Discord bots often encounter resource constraints, especially when connected to a lot of servers / channels, and I imagine running two in the same project might create even worse problems. You might be better served by putting your database somewhere shared like MongoDB and granting multiple projects access to it.
Aside from those comments, I’ll let the experts in the community provide better advice!
This is definitively possible, I have atleast 5 bots in 1 project! But you have to make sure to not use client for each one, and give them a name like, client1, client2, and so on, to seperate them from the main discord client