Skip to content

Instantly share code, notes, and snippets.

@MatMercer
Last active March 27, 2021 17:55
Show Gist options
  • Save MatMercer/e9907db93e32cff9e228a93aa418b525 to your computer and use it in GitHub Desktop.
Save MatMercer/e9907db93e32cff9e228a93aa418b525 to your computer and use it in GitHub Desktop.
Explode notifications in your computer - pip install notify-py
# 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