Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.09k stars 2.35k forks source link

Server specific data cleanup #2377

Closed itsTheFae closed 6 months ago

itsTheFae commented 6 months ago

Description

This updates code in bot.py to address potential issues with server_specific_data using bare guild objects rather than Guild.id as a key for the guild specific data. It could address minor inconsistency with features that depend on the data, and reduce memory usage ever so slightly for multi-guild instances.

Additionally I ran black on the project automatically this time (oops) which resulted in playlist.py and exceptions.py getting formatted.