Skip to content

Instantly share code, notes, and snippets.

@vesche
Created June 18, 2018 05:59
Show Gist options
  • Save vesche/265a2e468a1fd2a174d5a8e7a3ffc21c to your computer and use it in GitHub Desktop.
Save vesche/265a2e468a1fd2a174d5a8e7a3ffc21c to your computer and use it in GitHub Desktop.
autogamble.py
#!/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