From fa5656a58fc6b8bdf1c4bc7f7c90d5ceac9410b2 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Wed, 12 May 2021 19:27:38 +0200 Subject: [PATCH] mute functionality (we're still running on python 3.5...) --- distbot/bot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2