diff --git a/src/avocmine.py b/src/avocmine.py index 342fe90..a104336 100644 --- a/src/avocmine.py +++ b/src/avocmine.py @@ -11,11 +11,11 @@ import re async def automine_avocado_task(client): logger.info('Automine module started') - @client.on(events.NewMessage(pattern='⛏️ Удачно, удалось намайнить', chats=(6333102398,))) + @client.on(events.NewMessage(pattern='удалось намайнить', chats=(6333102398,))) async def automine_success(event): m = event.message if states.automine_enabled: - gems = re.findall(r'([0-9\ ]+) гемов', m.text)[0] + gems = re.findall(r'([0-9\ ]+) гем.*', m.text)[0] logger.success(f'Success mining {gems} gems') states.latest_successfull_mine = time.time() states.wait_before_next_mine = None