From 5b803a9e00835e7b51ec7b3fda47280102957477 Mon Sep 17 00:00:00 2001 From: mario Date: Wed, 2 Oct 2024 16:17:58 +0200 Subject: [PATCH] Aggiorna linkbot.py --- linkbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkbot.py b/linkbot.py index 48ae4e3..d74f2e3 100644 --- a/linkbot.py +++ b/linkbot.py @@ -42,7 +42,7 @@ class XMPPBot(ClientXMPP): # Metodo asincrono per la gestione dei messaggi ricevuti nella chat di gruppo async def muc_message(self, msg): # Filtra i messaggi per evitare di rispondere a quelli inviati dallo stesso bot - if msg['mucnick'] != self.nick and 'body' in msg.keys(): + if msg['mucnick'] != self.nick and msg['mucnick'] != "infobot" and 'body' in msg.keys(): text = msg['body'] # Estrae gli URL dal messaggio ricevuto urls = self.extract_urls(text)