From bbe208d162454185724d2fe125e7c739f70e6337 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Wed, 25 Mar 2020 21:41:59 +0800 Subject: [PATCH] fix: move message string to config file --- configuration.default.ini | 1 + mumbleBot.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configuration.default.ini b/configuration.default.ini index 2094944..1478d03 100644 --- a/configuration.default.ini +++ b/configuration.default.ini @@ -253,6 +253,7 @@ removed_tags_from_all = Removed tags {tags} from songs on the playlist. cleared_tags = Removed all tags from {song}. cleared_tags_from_all = Removed all tags from songs on the playlist. shortlist_instruction = Use !sl {indexes} to play the item you want. +auto_paused = Use !play to resume music! help =

Commands

Control diff --git a/mumbleBot.py b/mumbleBot.py index 81a456b..f58c208 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -333,8 +333,8 @@ class MumbleBot: if var.config.get("bot", "when_nobody_in_channel") == "pause_resume": self.resume() elif var.config.get("bot", "when_nobody_in_channel") == "pause": - self.send_msg('Music was paused after everyone left. !play to resume'); - + self.send_msg(constants.strings("auto_paused")) + elif len(own_channel.get_users()) == 1: # if the bot is the only user left in the channel self.log.info('bot: Other users in the channel left. Stopping music now.')