Image uploader for discord script (made entirely by ChatGPT) #5998
gmorks
started this conversation in
Show and tell
Replies: 1 comment
-
Are you really bored? "Message me when you are free https://------ Somebody uses GitHub notifications for spreading spam. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted a script to:
Scan a folder every 60 seconds, detect new images and then send it as discord message to a private server via webhook.
I have 0 knowledge for scripting, programing or anything, and I'm very surprised and pleased with the results:
it uses discord library:
pip install discord
and needs you to create a discord webhook:
check here
to execute, replace "replace_discord_webhook" with the url of your discord webhook, write the path to the folder you want to scan, save the code to a file and rename it to whatever you like (in my case image_uploader.py), then on a terminarl use:
python image_uploader.py
edit: I'm watching for the folder "./log/images" This folder is where images are saved when using the image browser extension "Move to Favorites" button. but you can scan multiple folders separating the folder with a coma: ["path/to/folder1/" , "path/to/folder2"].
Use it or modify it as you like, even if you can guide me how to convert it to a tab extension would be great
Beta Was this translation helpful? Give feedback.
All reactions