Fix syntax error
This commit is contained in:
parent
6a606ad3dd
commit
64fc790962
@ -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…
Reference in New Issue
Block a user