summaryrefslogtreecommitdiff
path: root/games_bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'games_bot.py')
-rwxr-xr-xgames_bot.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/games_bot.py b/games_bot.py
new file mode 100755
index 0000000..5d211b4
--- /dev/null
+++ b/games_bot.py
@@ -0,0 +1,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())