Created
June 7, 2022 07:23
-
-
Save asilbalaban/18680257777a6783da528aaad15da30a to your computer and use it in GitHub Desktop.
discord count game
This file contains hidden or 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
import keyboard | |
import time | |
import random | |
# number = 1 | |
number = int(input('en son kac yazilmis: ')) | |
time.sleep(3) | |
def onkeypress(event): | |
global number | |
number = number - 5 | |
keyboard.on_press_key("left arrow", lambda _: onkeypress) | |
while True: | |
keyboard.write(str(number)) | |
keyboard.press_and_release("enter") | |
sleep = random.randint(2, 5) | |
print(str(number) + ' gönderildi. ' + str(sleep) + ' saniye uyunacak.') | |
time.sleep(sleep) | |
number = number + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment