From: Thorsten S Date: Wed, 12 May 2021 17:27:38 +0000 (+0200) Subject: mute functionality (we're still running on python 3.5...) X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=fa5656a58fc6b8bdf1c4bc7f7c90d5ceac9410b2;p=urlbot-v3.git mute functionality (we're still running on python 3.5...) --- diff --git a/distbot/bot/bot.py b/distbot/bot/bot.py index 36b2a3d..e551dee 100644 --- a/distbot/bot/bot.py +++ b/distbot/bot/bot.py @@ -128,9 +128,9 @@ class Bot(slixmpp.ClientXMPP): if msg['type'] in ('normal', 'chat', 'groupchat'): message = msg['body'] - if message == f"{self.nick}: mute": + if message == "{}: mute".format(self.nick): self.muted = True - elif message == f"{self.nick}: unmute": + elif message == "{}: unmute".format(self.nick): self.muted = False if "hangup" in message: