Advertisement
daurge_fff

Sw - /eat

Dec 22nd, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. async def my_eat_200(event):
  2.     eat = int(re.search(r": \d+", event.raw_text).group().replace(": ", ""))
  3.         if eat == 210:
  4.             await client.send_message(sw_bot, "/eat")
  5.             await logging("🔋Поел на "+str(eat))
  6.             await client.send_message(log_chat, logging)
  7.         elif eat < 200:
  8.             await client.send_message(sw_bot, "/eat")
  9.             await logging("🔋Поел на "+str(eat))
  10.             await client.send_message(log_chat, logging)
  11.         elif eat == 200 or eat == 100:
  12.             await logging("🔋Поел на "+str(eat))
  13.             await client.send_message(log_chat, logging)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement