Skip to content

Instantly share code, notes, and snippets.

@asilbalaban
Created September 17, 2022 09:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asilbalaban/99a5c1e5122f5cac24f7f1198e780437 to your computer and use it in GitHub Desktop.
Save asilbalaban/99a5c1e5122f5cac24f7f1198e780437 to your computer and use it in GitHub Desktop.
import keyboard
import time
import random
prompt = str(input('Bir kavram girin: '))
if prompt == '':
prompt = "reglan arm cycling jersey design in bright green, yellow, blue, red, grey, white, black, purple, vivid colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design in pastel colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design in cosmic colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design in light colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design in hot colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design with map texture, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design with animal skin texture, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design, android, sharp, realistic, ultra detailed, 8k"
time.sleep(3)
def slash():
time.sleep(1)
keyboard.press('shift')
keyboard.press('7')
keyboard.release('7')
keyboard.release('shift')
time.sleep(1)
def dot():
time.sleep(1)
keyboard.press('shift')
keyboard.press('.')
keyboard.release('.')
keyboard.release('shift')
time.sleep(1)
def debug():
while True:
if keyboard.read_key():
print(keyboard.read_key())
while True:
time.sleep(2)
slash()
keyboard.write('imagine prompt')
dot()
keyboard.write(" " + prompt)
time.sleep(1)
keyboard.press_and_release("enter")
sleep = random.randint(50, 80)
print('/imagine prompt: ' + str(prompt) + ' gönderildi. ' + str(sleep) + ' saniye uyunacak.')
time.sleep(sleep)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment