955 Commits

Author SHA1 Message Date
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
3200c83fd0
Merge pull request #280 from TerryGeng/racing
fix: Racing condition happens when editing playlist.
2021-05-24 09:35:56 +08:00
Terry Geng
b65e7b2bcc
fix: Racing condition happens when editing playlist. Fixes #279. 2021-05-24 09:26:23 +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
Terry Geng
32191bfd9a
Merge pull request #277 from TerryGeng/uncached
fix: Removing items during validation breaks validation
2021-05-18 17:51:47 +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
Terry Geng
55daddb774
fix: Removing items during validation breaks validation
Fix #266.
2021-05-16 23:48:07 +08:00
azlux
1c283654fd
Unescape HTML in URLs parsed from user input
Merge pull request #275 from mweinelt/url-unescape-html
2021-05-16 16:30:50 +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
faddf4c6c2
Unescape HTML in URLs parsed from user input
Escapes tokens like & to &, so GET parameters are correctly preserved.

Fixes: #274
2021-05-16 15:04:50 +02:00
azlux
b0e3e65caf
Fix playlist items over multiple attemps
Merge pull request #276 from mweinelt/fix-playback-attempts
2021-05-16 15:04:25 +02:00
Martin Weinelt
e6d12e36c7
Don't accumulate playlist items over multiple attemps
Playlist items would previously have been added once for each attempt,
due to items being scoped differently than the playlist parsing
attempts. Each attempt would add to the playlist every time, since we
only returned outside the attempts loop.
2021-05-16 05:51:42 +02:00
Terry Geng
f9cc9c7872
Merge pull request #272 from mweinelt/catch-indexerror-on-empty-message
Don't assume text messages have a first character in command parsing
2021-05-16 09:06:48 +08: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
Azlux
efcd19eab7 update nodejs lib
#SECURITY
2021-05-15 23:28:21 +02:00
Azlux
abc8c72c7f adding type debug 2021-05-15 22:45:11 +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
dadidji
72595f20fc
fix: Cookies for Youtube query (#264) 2021-04-24 12:53:52 +08:00
Terry Geng
61748c199a
feat: Allow users to specify a cookie when querying youtube.
See #263.
2021-04-23 23:02:04 +08:00
Terry Geng
b7232b8bae
fix: Adjust default volume 2021-04-07 15:20:35 +08:00
Terry Geng
384bacf1ef
fix: Join music file path safely. 2021-04-07 15:17:55 +08:00
Azlux
e5f623f6c3 remove html from incoming messages
#246
2021-04-03 14:17:41 +02:00
Azlux
ee5a54b33b add youtube-dl options
#258
2021-04-03 13:39:47 +02:00
Azlux
582b0b58da Add youtube-dl verbose log option 2021-04-03 13:11:54 +02:00
Azlux
7a6cdef65d Add verbose mode for docker
link to #261
2021-04-03 12:55:01 +02:00
Terry Geng
df38c7dbd6
Merge pull request #259 from SeerLite/empty-playlist-message
Don't show how to resume if playlist is empty when "when_nobody_in_channel = pause"
2021-03-13 15:44:40 +08: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
1637501601
fix: Error when calculating tmp folder size.
Instructed the bot to directly ignore errors.

Fixed #224.
2021-02-28 08:59:48 +08:00
Terry Geng
999252c98b Bot: Reformat translation 2021-02-22 15:45:19 +00: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
Terry Geng
f59062ec1f refactor: Reformat commands in alphabet order. 2021-02-22 23:44:14 +08:00
Terry Geng
c1671d5eb0
fix: Updated youtube search mechanism.
Youtube updated the format of its search result page.
Now it wraps everything into a huge json and made our
life much easier.

Fix #252
2021-02-17 14:22:41 +08:00
Kyle Robbertze
6bc9a9a8e0 Allow music_folder to not have trailing / 2021-02-17 13:00:47 +08:00
Traduora Bot
49779c20ae Bot: Update translation 2021-01-02 09:43:07 +08:00
Terry Geng
a611df3132 Bot: Reformat translation 2021-01-01 06:42:32 +00:00
Terry Geng
4597824fdb
feat: Added bot command version to display current version.
Requested in #194.
2021-01-01 14:41:17 +08:00
Terry Geng
101391fe57
fix: template path resolve 2020-12-31 18:06:26 +08:00
Terry Geng
9e07fac5ec
fix: snapshot version not based on newest tag 2020-12-31 17:52:28 +08:00
Terry Geng
23dc9d2460
fix: wrong dir when getting snapshot version 2020-12-31 17:46:26 +08:00
Terry Geng
8870667064
fix: absolute path bug 2020-12-31 11:06:44 +08:00
Terry Geng
f96c9f7f89
fix: lang/ path not found 2020-12-31 11:01:22 +08:00
kusky
1af21a66f8
Update configuration.default.ini (#237) 2020-12-14 22:01:24 +08:00
kusky
16345fed1c
Update configuration.example.ini (#238) 2020-12-14 22:01:12 +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
azlux
19858595d6
Full Docker build (#234)
* Added multi-stage docker build
* switch dockerfile files

Co-authored-by: ReAnzu <github@reanzu.com>
2020-12-01 01:30:04 +01:00
Terry Geng
2d1430e397
feat: Web Interface: Support HTTP 1.1 Payload for POST requests. 2020-11-30 12:47:36 +08:00