1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

publish: 5.9.7

This commit is contained in:
Steffo 2020-07-02 22:07:40 +02:00
parent 81fa719115
commit e58860f347
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
3 changed files with 12 additions and 2 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalpack" name = "royalpack"
version = "5.9.6" version = "5.9.7"
description = "A Royalnet command pack for the Royal Games community" description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -55,7 +55,12 @@ class MMTask:
def is_running(self): def is_running(self):
return self.task is not None return self.task is not None
def sync(self):
self._session.refresh(self._mmevent)
def get_response_line(self, response: MMResponse): def get_response_line(self, response: MMResponse):
self.sync()
# noinspection PyListCreation # noinspection PyListCreation
line = [] line = []
@ -90,6 +95,8 @@ class MMTask:
@property @property
def channel_text(self) -> str: def channel_text(self) -> str:
self.sync()
# noinspection PyListCreation # noinspection PyListCreation
text = [] text = []
@ -116,6 +123,8 @@ class MMTask:
@property @property
def start_text(self) -> str: def start_text(self) -> str:
self.sync()
# noinspection PyListCreation # noinspection PyListCreation
text = [] text = []
@ -373,6 +382,7 @@ class MMTask:
self.unregister_telegram_keyboard(inkm) self.unregister_telegram_keyboard(inkm)
async def telegram_channel_message_update(self): async def telegram_channel_message_update(self):
log.debug(f"Updating message for: {self.mmid}")
try: try:
await asyncify( await asyncify(
self.command.interface.serf.client.edit_message_text, self.command.interface.serf.client.edit_message_text,

View file

@ -1 +1 @@
semantic = "5.9.6" semantic = "5.9.7"