Storm Dragon
de270bc842
Second wave of initial code changes.
2025-06-13 18:53:38 -04:00
XenonPK
bb179ebc23
Add bots option to exclude other bot users from autoplay logic ( #301 )
...
* Add bots option to exclude other bot users from autoplay logic
* Refactor get_user_count_in_channel to make it more readable
* Remove commandline option and rename config key for "bots"
* Remove --bots from argparse
* Correct when_nobody_in_channel_ignore config read typo
* Fix when_nobody_in_channel_ignore configuration read order
2023-07-03 10:42:40 +02:00
Martin Weinelt
2a204988c3
Properly fix version handling with packaging>=22.0
...
Both the current version and the last startup version can be unparsable.
Hence we now just catch the resulting exception and reset the version
to the new version, which may or may not be parsable, which we'll find
out on the next start up. But either way this prevents crashes from
unparsable versions in the database.
2023-05-29 16:03:47 +02:00
Azlux
eb4c63db89
fix for git version
2023-01-10 02:24:20 +01:00
Caleb Leinz (he/him)
a50a067641
Implementation for setting max volume ( #336 )
...
* Added support for creating a max volume
* Fixed db function calls
* Fixed issue with max volume always adjusting volume
2022-07-12 18:13:10 +02:00
Terry Geng
a0eb5b39c3
fix(config): Define all fallback in configuration.default.ini.
2022-02-01 21:08:15 -05:00
Terry Geng
37666c7daf
feat(config): Detect unexpected config items from config files.
2022-01-21 23:58:49 -05:00
Terry Geng
508811cd2a
Merge pull request #309 from knector01/master
...
Allow changing bot avatar
2022-01-21 09:40:16 -05:00
knector01
fd2c41eb9c
feat: Add avatar config option
2022-01-20 21:18:02 -07:00
KrakatauiHD
f8a71058f0
make the rotating logsfiles rotating again
2022-01-20 16:08:25 +01:00
Terry Geng
c624c327c3
fix(audio): Fadein not working properly for mono.
2021-12-13 13:40:36 -05:00
Terry Geng
3e1f810b0e
fix: Music wrongly started if two people left in channel.
...
Fix #298
2021-12-02 08:31:56 -05:00
Terry Geng
6faadd6669
feat: Add config option redirect_stderr
.
...
Proposed in #282 .
2021-05-26 11:29:22 +08:00
Terry Geng
efab8928f5
fix: Failure caused by welcome message sent by the server.
...
Fixes #281 .
2021-05-26 09:25:04 +08:00
Terry Geng
33a9e75ba9
Merge pull request #269 from mweinelt/auto_fetch_changelog
...
Allow opt-out to fetching changelogs on updates
2021-05-19 22:37:39 +08:00
Martin Weinelt
cb95e25178
Improve robustness of command parsing
...
Merge pull request #273 from mweinelt/robust-commandparser
2021-05-18 01:15:29 +02:00
Martin Weinelt
849a0a0843
Only fetch changelog, when auto-updates are enabled
...
Fixes : #268
2021-05-16 16:15:39 +02:00
Martin Weinelt
e6592f5c22
Don't assume text messages have a first character in command parsing
...
Fixes : #271
2021-05-16 02:53:12 +02:00
雲華
f36611f07b
add support for setting bot bandwidth
...
feat: Add support for setting bandwidth
Changes the default bandwidth value to 96000
2021-05-05 01:04:46 +02:00
Terry Geng
b7232b8bae
fix: Adjust default volume
2021-04-07 15:20:35 +08:00
Azlux
e5f623f6c3
remove html from incoming messages
...
#246
2021-04-03 14:17:41 +02:00
Azlux
7a6cdef65d
Add verbose mode for docker
...
link to #261
2021-04-03 12:55:01 +02:00
SeerLite
736fac28b0
Don't send auto_pause hint message if not paused
2021-03-13 02:44:06 -03:00
SeerLite
17a35c43e3
Avoid auto pausing when playlist is empty
2021-03-13 02:43:40 -03:00
Azlux
e079f948bc
fix import
2021-03-01 12:26:28 +01:00
Azlux
a3b9948b6d
cleaning deleted file "system"
2021-03-01 11:55:44 +01:00
Terry Geng
1f9573b1d5
feat: Whitelist URL feature.
...
In the configuration, `max_duration` can be set to prevent
long song(URL item) being downloaded and added to the
playlist.
This whitelist feature provided a way to override this
duration check: songs being whitelisted will be added to
the playlist no matter how long they are.
Three admin commands are introduced:
- !urlwhitelist (!urlw)
- !urlunwhitelist, (!urlunw)
- !urlwhitelistlist, (!urlwls).
Also, if one song fails due to its length, the bot will
show the length of this song and the max length limit in
the reply message.
Implement #173 , #196 .
2021-02-22 23:44:14 +08:00
Kyle Robbertze
6bc9a9a8e0
Allow music_folder to not have trailing /
2021-02-17 13:00:47 +08:00
Azlux
9174ce67ff
Fix #231
...
Check if the lib still online while sending the audio buffer
2020-12-01 12:13:01 +01:00
Terry Geng
892a1863e7
fix: Erroneous logic for determining if ffmpeg dies prematurely. Fixed #223 .
2020-11-26 13:09:43 +08:00
Terry Geng
716b106f6c
refactor: Move check for update into utils.
2020-10-30 20:47:50 +08:00
Terry Geng
fceb50e894
fix: crash triggering by stop and play when playlist is empty, fixed #206 .
2020-09-20 09:53:16 +08:00
Terry Geng
14668bb2b8
fix: Avoid truncating last ~100ms of music when playing.
...
Somehow subprocess.poll() will return before all music stream has been retrieved from stdout of the ffmpeg thread, causing the last bit of the stream being truncated.
Fixed #199 .
2020-07-25 21:39:00 +08:00
Terry Geng
b3fe43cb18
feat: Enhance debug log.
2020-07-25 18:00:50 +08:00
Terry Geng
97309599f1
feat: Add translation populating procedure for the web interface.
2020-07-12 16:05:11 +08:00
Terry Geng
9e2e09e5fd
feat: Load language file in lang/ instead of the ini file.
2020-07-12 11:45:51 +08:00
Terry Geng
e84607b8e8
refactor: Rename constants.string into tr.
2020-07-12 11:45:51 +08:00
Terry Geng
6133c6f0b5
chore: Parse changelog in markdown into html
...
when publishing release.
2020-07-08 10:13:42 +08:00
Terry Geng
892fa502e6
feat: Apply the fade-in trick to the beginning of the stream.
2020-07-07 21:42:24 +08:00
Azlux
9fe03f3425
Fix check version at start
2020-06-23 23:30:51 +02:00
Azlux
ccbde28ef9
New update method
...
manage testing deplyement
2020-06-23 12:38:02 +02:00
Terry Geng
2c43942a9b
Update mumbleBot.py
...
chore: Prepare for releasing v6.5
2020-06-17 22:00:26 +08:00
Terry Geng
fb38b43f93
Merge branch 'master' into volume
2020-06-16 09:02:46 +08:00
Terry Geng
a6f8c459d0
refactor: move volume part into a helper
2020-06-15 20:36:52 +08:00
Terry Geng
762bb337b5
refactor: optimized the non-glitchy interrupt logic.
2020-06-11 10:40:19 +08:00
Terry Geng
7f45ab0506
fix: bot failed to detect if the ffmpeg thread is dead, fixed #168 .
2020-06-11 09:17:59 +08:00
Terry Geng
3c87c33ddd
fix: typo that renders refresh_cache_on_startup = False useless, #163
2020-06-09 21:22:00 +08:00
Terry Geng
5f67517dc3
feat: use a function to convert volume set by the user to a scale of -60~0 dB. Then convert dB to a factor from 0 to 1 used as the real volume factor.
2020-06-08 17:30:37 +08:00
azlux
32e32774eb
using identifiable power
...
using math.e = 2.718281… is quite useless. Let use 2.7
2020-06-08 16:25:03 +08:00
Azlux
7c2fd00884
change volume mgmt
...
better volume management for your hears
2020-06-08 16:25:03 +08:00