A simple Discord bot written using discord.py which can be used to post random images from a image collection locally stored on your hard drive to a server.
Table of Contents
- A simple Discord bot written using discord.py which can be used to post random images from a image collection locally stored on your hard drive to a server.
- This is the most basic version of the bot that I have written. And this bot has to be run locally on your computer to be used.
- Download the files.
- Create a .env file with the following attributes filled.
DISCORD_TOKEN = [Your Discord token from the developer portal]
FOLDER_PATH = [The local folder path you want to use]
- Add the bot to your server using the Discord Developer Portal.
- Run the bot.py on your computer.
- Use the .pic [subfolderName] command in the server.
-
Use without '[]'. And the local folder path is the parent folder which has the subfolders.
-
This code will only work on Windows. You can edit out the Python code to do as you wish if you have basic Python knowledge.
- Distributed under the GPL-3.0 License. See
LICENSE
for more information.
- Basic automation of mundane tasks like posting content in a Discord server
- File handling and sorting
Navin Pemarathne - navin.pemarathne@gmail.com
Project Link: https://github.com/NavinYP/autoPoster