✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 10/21/2024 in #djs-voice
ffmpeg potential memory leak
Hello, so I'm here because I m searching what's causing these ffmpeg execution to be kept 2 hours in memory.
So as I know my bot's having memory leaks and in my search to find out why I'm here to ask you about this line :
So I know it's ffmpeg and it's used to convert the songs into a proper way so that discord api can send it in vocal. But I'm searching how to clear them properly.
8 replies
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 9/10/2024 in #djs-questions
How to kill a shard and prevent its auto respawn functionnality?
Hello,
I m using the ShardingManager and I want to know how to prevent the shards you kill with shard.kill() to automatically respawn after it? Without restarting the ShardingManager.
27 replies
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 5/5/2024 in #djs-questions
Sharding in Multi-Servers
Hello,
So I have a Music Bot and as it's groing exponentially I am in need to use it in a multi-servers way. So I set up an API that will be on my main server and I set up client code that will be on differents serveurs. Between the two there's a websocket connection that will say to the client which shard Ids he will be able to use, then he answer the ones he launched without problem. If a connection is cut or if a shard is down the API will know that and will update the shardList letting others servers the ability to use the ids available. HOWEVER, here's my problem, when a shard is abandoned by its client the servers on the shard willn't be able to use the bot before another client takes the opportunity to launch over these shards.
I am here to discuss about a solution that could help me. Thanks !
19 replies
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 4/29/2024 in #djs-voice
How Can I make the bot leave a channel without having the connection that was created on his join ?
When the bot joins a channel it creates a connection with the joinVoiceChannel() function but when we reset the bot the voiceConnection is not kept so my question is how can I get the connection of the bot in a channel without having the first connection object ? My goal is to make him leave the channel.
18 replies
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 4/26/2024 in #djs-questions
Sharding Questions
Hello,
As my bot is nearly reaching the 2k servers. I need to prepare it to sharding but I have some questions to that :
As I use a system like that :
Then I get all the values I need from that const. But as sharding is splitting my code in multiple processes, to gain performance I want these to be centralized in one file and accessible for all the shards at the same time without them to have each one a copy of that data. I made this system to generate less database calls but if each process need to call the database and save his part I will need to change that.
Thanks !
10 replies
DIAdiscord.js - Imagine an app
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 3/20/2024 in #djs-questions
User Apps Permissions
Hey,
Do you know if they will add the possibility to add permissions to user apps ? Like the possibility to connect and speak in a call.
Thanks
28 replies