Last active
March 27, 2021 17:55
-
-
Save MatMercer/e9907db93e32cff9e228a93aa418b525 to your computer and use it in GitHub Desktop.
Explode notifications in your computer - pip install notify-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
# CREATES 100 notifications in your desktop, super dangerous script, beware | |
from notifypy import Notify | |
import threading | |
ammount = 100 | |
def notify(num): | |
notification = Notify() | |
notification.title = "Cool Title: " + str(num) | |
notification.message = "Explode: " + str(num) | |
notification.send() | |
threads = [] | |
for x in range(0, ammount): | |
t = threading.Thread(target=notify, args=(x,)) | |
t.start() | |
threads.append(t) | |
for t in threads: | |
t.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment