refactor: clean up

This commit is contained in:
omg-xtao 2022-03-09 20:56:45 +08:00 committed by GitHub
parent aeee9738a4
commit 4c6880b342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,7 +366,7 @@ class GoCQHttp(BaseClient):
efb_msg = Message(
chat=chat,
uid=MessageID([[f"{chat.uid.split('_')[-1]}_{coolq_msg_id}"]])
uid=MessageID(f"{chat.uid.split('_')[-1]}_{coolq_msg_id}")
)
coordinator.send_status(MessageRemoval(source_channel=self.channel,
destination_channel=coordinator.master,
@ -382,7 +382,7 @@ class GoCQHttp(BaseClient):
return
efb_msg = Message(
chat=chat,
uid=MessageID([[f"{chat.uid.split('_')[-1]}_{coolq_msg_id}"]])
uid=MessageID(f"{chat.uid.split('_')[-1]}_{coolq_msg_id}")
)
coordinator.send_status(MessageRemoval(source_channel=self.channel,
destination_channel=coordinator.master,