blob: 5d211b4b13142d013d5ebfbbdcbf4438c07bf16a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env python3
from recolor_lib import accountError, user
import asyncio
cooldown_time = 5 # nessesary to ensure DOS prevention doesn't kick in
async def main():
try:
# not real accounts
users = await asyncio.gather(
user.init('account_example_1', '1234'),
user.init('account_example_2', '5678'))
except Exception as e:
print(e)
else:
await asyncio.gather(
users[0].maximize_money(),
users[1].maximize_money())
[await u.close() for u in users]
asyncio.run(main())
|