Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Made with <3 during a hot day from Halix !
- # Instructions :
- # Save this script as a new .py file
- # Put in the same folder of 'PokeCli.py'
- # Run it with Python3 !
- import subprocess
- import time
- location = "Santa Monica"
- acctype = "google"
- username = "mygoogle@gmail.com"
- password = "mysecretpass"
- def wait(timer):
- import time
- while timer >= 0:
- time.sleep(1)
- print("[Time : " + str(timer) + "] Counting Down . . .")
- timer -= 1
- while True:
- process = subprocess.Popen(['screen', '-d', '-m' ,'python2', 'pokecli.py','-a',acctype,'-u',username,'-p',password,'-l',location])
- print("[Time : 0] Process Running . . .")
- timer = 3600
- wait(timer)
- subprocess.call(["pkill", "python2"])
- print("[Time : 0] Process Killed,sleeping . . .")
- timer = 300
- wait(timer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement