removing the @bot when its mentioned in the log

This commit is contained in:
manetta 2019-04-16 23:13:32 +02:00
parent 4e9c94c102
commit b9965a8e62

View File

@ -100,7 +100,7 @@ class MUCBot(slixmpp.ClientXMPP):
mtype='groupchat')
# Add message to log
message = '<p class="message">{}</p>'.format(msg['body'])
message = '<p class="message">{}</p>'.format(msg['body'].replace('@bot',''))
output = self.output
log = 'log.html'
log_path = os.path.join(output, log)