it maybe work (?)

This commit is contained in:
Your Name 2024-12-18 01:45:12 +03:00
parent 8a598f8e29
commit 75f3a27cfc

View file

@ -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