-
-
Couldn't load subscription status.
- Fork 9
Closed
Labels
Description
PROBLEM:
- Currently the bot is using a single
music_queueand other player properties over different servers. Since, indiscord.py, for all different servers in which the bot is present, only one instance of bot is used, only one, thus, in our case, if the bot is playing music on two different servers, it'll be maintaining a single queue and a single set of player properties for both. - For example, changing volume in one server changes it for all the other servers as well.
POSSIBLE WORKAROUND:
- Make a
dictionarywithctx.guild.idas it's key and put adictionary(containingmusic_queueas alist, all the other player properties) as the corresponding value. -
FORMAT:
player_properties = { '<guild1_id>' : {'music_queue': [], 'volume': 1, 'current_song_index': 0, ...}, '<guild2_id>' : {'music_queue': [], 'volume': 1, 'current_song_index': 0, ...}, '<guild3_id>' : {'music_queue': [], 'volume': 1, 'current_song_index': 0, ...}, ... }