]> git.aero2k.de Git - urlbot-v3.git/commitdiff
mute functionality (we're still running on python 3.5...)
authorThorsten S <mail@aero2k.de>
Wed, 12 May 2021 17:27:38 +0000 (19:27 +0200)
committerThorsten S <mail@aero2k.de>
Wed, 12 May 2021 17:27:38 +0000 (19:27 +0200)
distbot/bot/bot.py

index 36b2a3ded5ed668fc9feddbcef2f02449b9e17ba..e551dee7816a0c20f52a1761f3c78597357d5127 100644 (file)
@@ -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: