mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix diario for Royalnet 5.11
This commit is contained in:
parent
0384d26f82
commit
e49843029a
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class DiarioCommand(rc.Command):
|
|||
if isinstance(self.serf, rst.TelegramSerf):
|
||||
message: telegram.Message = data.message
|
||||
reply: telegram.Message = message.reply_to_message
|
||||
creator = await data.get_author()
|
||||
creator = await data.find_author(session=session, required=True)
|
||||
# noinspection PyUnusedLocal
|
||||
quoted: Optional[str]
|
||||
# noinspection PyUnusedLocal
|
||||
|
@ -154,7 +154,7 @@ class DiarioCommand(rc.Command):
|
|||
await data.reply(f"✅ {str(diario)}")
|
||||
else:
|
||||
# Find the creator of the quotes
|
||||
creator = await data.get_author(error_if_none=True)
|
||||
creator = await data.find_author(session=session, required=True)
|
||||
# Recreate the full sentence
|
||||
raw_text = " ".join(args)
|
||||
# Pass the sentence through the diario regex
|
||||
|
|
Loading…
Reference in a new issue