Open Nyhilo opened 2 years ago
This PR also resolves issue #40.
I'm not well practiced in contributing the code I write, so let me know if you need anything from me @Raptor123471.
I have not had a chance to run this yet but it looks great. My only suggestion right now is that the auto announce configuration in config.py
becomes a setting in settings.py
so that it can become configurable per guild. I will test your PR out when I get the chance.
Yeah I can do that. I was little unclear about how settings.py is organized, but I've got some time this afternoon to work on it.
I did the move from the config to settings.py, and I resolved the merge conflicts.
However, it seems like an existing settings.json value doesn't actually take the new setting until you run set announce_tracks true
once, even though upgrade()
runs. Not sure why
That's a mistake on my part where the missing keys are found and set in memory but never written to disk in the 'upgrade' function. I will push the fix and then we can get this PR merged. Check out #72 . I'm going to test it some more when I am home.
I did a reformat on the queue command to make it more compact and to give a bit more info (such as playtimes). Looks like this:![image](https://user-images.githubusercontent.com/11170845/142960838-ccd5d220-d0ab-4b37-84cf-c862bac98d07.png)
I also added a configurable feature that auto-announces when a new song starts playing. Useful for people to see what's on deck at a glance without having to do![image](https://user-images.githubusercontent.com/11170845/142960912-de846556-557e-4add-949c-ee908f67acb2.png)
$np