iotku / mumzic

Music bot for mumble servers, can play youtube/soundcloud or local files.
Mozilla Public License 2.0
3 stars 0 forks source link

Make chanMsg() non-blocking to TextMessage events #4

Closed iotku closed 2 years ago

iotku commented 4 years ago

In an effort to avoid messages being ignored (due to bypassing rate limits) I implemented some Sleep functions into chanMsg() (https://github.com/iotku/mumzic/commit/687d10ab8ed9e6fce355c002da97b3f899cedeba)

While this often will be a non-issue (especially if not getting past the initial burst of messages), if a long operation such as !search or !list is sending large amounts of output to the server playback controls will be delayed until the output from the other commands is done.