Fix syntax error

This commit is contained in:
Luke Murphy 2021-02-27 11:57:19 +01:00
parent 6a606ad3dd
commit 64fc790962
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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: