From 7a6cdef65d9d0fd8bd86eb49cd30c953c88a2f6a Mon Sep 17 00:00:00 2001 From: Azlux Date: Sat, 3 Apr 2021 12:55:01 +0200 Subject: [PATCH] Add verbose mode for docker link to #261 --- entrypoint.sh | 4 ++++ mumbleBot.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 15a0e98..c4ec935 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,6 +37,10 @@ if [ -n "$BAM_CERTIFICATE" ]; then command+=( "--cert" "$BAM_CERTIFICATE" ) fi +if [ -n "$BAM_VERBOSE" ]; then + command+=( "--verbose" ) +fi + if [ -n "$BAM_CONFIG_file" ]; then if [ ! -f "$BAM_CONFIG_file" ]; then cp "/botamusique/configuration.example.ini" "$BAM_CONFIG_file" diff --git a/mumbleBot.py b/mumbleBot.py index 5ab48de..a6cbaed 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -751,7 +751,7 @@ if __name__ == '__main__': parser.add_argument("-P", "--password", dest="password", type=str, help="Server password, if required") parser.add_argument("-T", "--tokens", dest="tokens", - type=str, help="Server tokens, if required") + type=str, help="Server tokens to enter a channel, if required (multiple entries separated with comma ','") parser.add_argument("-p", "--port", dest="port", type=int, help="Port for the Mumble server") parser.add_argument("-c", "--channel", dest="channel",