/autoPoster

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.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Forks Stargazers Issues LinkedIn


autoPoster

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
  1. About The Project
  2. Usage
  3. License
  4. Contact

About The Project

  • 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.

Usage

  1. Download the files.
  2. 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]

  1. Add the bot to your server using the Discord Developer Portal.
  2. Run the bot.py on your computer.
  3. 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.

License

  • Distributed under the GPL-3.0 License. See LICENSE for more information.

What I Learnt

  • Basic automation of mundane tasks like posting content in a Discord server
  • File handling and sorting

Contact

Navin Pemarathne - navin.pemarathne@gmail.com

Project Link: https://github.com/NavinYP/autoPoster