it maybe work (?)
This commit is contained in:
parent
8a598f8e29
commit
75f3a27cfc
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ import re
|
||||||
async def automine_avocado_task(client):
|
async def automine_avocado_task(client):
|
||||||
logger.info('Automine module started')
|
logger.info('Automine module started')
|
||||||
|
|
||||||
@client.on(events.NewMessage(pattern='⛏️ Удачно, удалось намайнить', chats=(6333102398,)))
|
@client.on(events.NewMessage(pattern='удалось намайнить', chats=(6333102398,)))
|
||||||
async def automine_success(event):
|
async def automine_success(event):
|
||||||
m = event.message
|
m = event.message
|
||||||
if states.automine_enabled:
|
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')
|
logger.success(f'Success mining {gems} gems')
|
||||||
states.latest_successfull_mine = time.time()
|
states.latest_successfull_mine = time.time()
|
||||||
states.wait_before_next_mine = None
|
states.wait_before_next_mine = None
|
||||||
|
|
Loading…
Reference in a new issue