Kyanq
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
ok, thanks
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
I can see the structure close to the ideal somewhere?
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
thanks for the advice, and what template would you recommend, what should I strive for?
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
I removed it, but it still launches repeatedly. Writes Shard Launched 0, Shard Launched 1 several times and restarts each time. Therefore, the bot responds to one command many times in the same shard
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
do you mean this?
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
yes, I just created bot.js, transferred the contents of index.js there, and wrote the code for creating shards in index.js. And I tried to fix the problem with creating multiple clients for one shard in commands.js
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
ok, sorry
handlers/commands.js
structures/BaseCommand.js: https://github.com/iamnotacoder-djs/DiscordBotIda/blob/master/structures/BaseCommand.js
everything else is the same as on that github
i changed only these 3 files: index.js, bot.js, handlers/commands.js
13 replies
DIAdiscord.js - Imagine an app
•Created by Kyanq on 7/17/2023 in #djs-questions
Dublicate shard. Many client instances for one shard.
index.js code:
bot.js code:
13 replies