Browse Source

Fix syntax error

master
Luke Murphy 4 years ago
parent
commit
64fc790962
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      LogBot/logbot.py

4
LogBot/logbot.py

@ -187,7 +187,9 @@ class Logbot(Bot):
key = str(match.replace("@delete ", "")) key = str(match.replace("@delete ", ""))
if key in self.db[message.room]["messages"]: if key in self.db[message.room]["messages"]:
self.log.info(f"To be deleted: {self.db[message.room]["messages"][key]}") self.log.info(
f"To be deleted: {self.db[message.room]['messages'][key]}"
)
reply = f"This message is deleted: { self.db[message.room]['messages'][key] }" reply = f"This message is deleted: { self.db[message.room]['messages'][key] }"
del self.db[message.room]["messages"][key] del self.db[message.room]["messages"][key]
else: else:

Loading…
Cancel
Save