Multiple Client Logins
In the Discord API, right now, you can only login with one client in every bot.
For example:
Discord.js:
You can do only one
client.login(token)
Discord.py:
You can do only one
client.run(token)
I'd like it so that we can do multiple logins, for example:
Discord.js:
client.login(botToken1)
client.login(botToken2)
Discord.py:
client.run(botToken1)
client.run(botToken2)
-
Discord does not run any of the client libraries out there. Also, fyi, discord.py was officially shut down recently.
Source: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1
1 -
I know that, I was just providing examples. I also know that Discord.py was shut down.
0 -
It also isn't true you can't login more than once
You can log in as many bots in one process as that process can handle, and you can log in the same client multiple times. You just need separate client definitions
for example
import Eris from "eris";
const client1 = new Eris.Client("TOKEN_1");
const client2 = new Eris.Client("TOKEN_1");
const client3 = new Eris.Client("TOKEN_2");
client1.connect();
client2.connect();
client3.connect();All three clients will connect and work fine.
0
Iniciar sesión para dejar un comentario.
Comentarios
3 comentarios