-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
30 lines (27 loc) · 1.03 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# (c) 2022-2023, Akkil MG
# License: GNU General Public License v3.0
import asyncio
import time
from helpers import checker, moe, login
async def main():
print('------------------- MoE-Bot -------------------')
print('----------------------- Service Started -----------------------')
try:
while True:
auth = await login()
if auth['success'] == False:
print('Login failed')
return
checked = await checker(auth['driver'], auth['c_html'])
while checked['success']:
print(f"--------------------------------------------")
await moe(auth['driver'], auth['c_html']) # Asegúrate de que se pasen estos dos argumentos
time.sleep(605) # seconds
except Exception as e:
print(f"Exception occurred (main): {e}")
return
if __name__ == "__main__":
try:
asyncio.run(main())
except KeyboardInterrupt:
print('----------------------- Service Stopped -----------------------')