Created
June 18, 2018 05:59
-
-
Save vesche/265a2e468a1fd2a174d5a8e7a3ffc21c to your computer and use it in GitHub Desktop.
autogamble.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pyautogui | |
import random | |
import time | |
def r(): return random.randint(1, 10) | |
while 1: | |
time.sleep(r()) | |
pyautogui.typewrite("!gamble 1") | |
pyautogui.hotkey("enter") | |
time.sleep(r()) | |
pyautogui.typewrite("!gamble 1 .") | |
pyautogui.hotkey("enter") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment