[x] I have tested my changes against the dev branch (the latest developmental version), and this pull request is targeting that branch as a base
[x] I have tested my changes on Python 3.10.12
[x] I have ensured my code is formatted using Black
Description
This PR builds on the recently added channel inactivity timer.
It adds one new option LeavePlayerInactiveFor which allows control over automatically disconnecting a player from voice when it is paused, or otherwise not playing music for the set duration. It does not impact the LeaveAfterSong setting which will still immediately disconnect.
Some variable and function names were changed to be more consistent and clarify their intent in code.
In addition, the timer options can now be set using a phrase containing time duration(s) which are briefly documented in the example_options.ini file.
dev
branch (the latest developmental version), and this pull request is targeting that branch as a baseDescription
This PR builds on the recently added channel inactivity timer. It adds one new option
LeavePlayerInactiveFor
which allows control over automatically disconnecting a player from voice when it is paused, or otherwise not playing music for the set duration. It does not impact theLeaveAfterSong
setting which will still immediately disconnect. Some variable and function names were changed to be more consistent and clarify their intent in code.In addition, the timer options can now be set using a phrase containing time duration(s) which are briefly documented in the
example_options.ini
file.