Skip to content

lagliam/DIP-bot

Repository files navigation

Discord Image Posting Bot (DIP-Bot)

DIP-Bot is a Discord bot takes a directory of images and posts to a channel on an interval

Installation

Prerequisites

Generate a new Discord bot token, only needs permission to send messages. Requires Python3

Install

Clone this repository to your server

git clone https://github.com/lagliam/DIP-bot.git

Run

setup.sh
  • Put your images in the /images folder

  • Place token in .env file

  • Update the variables in .env file with values to be used by the database

  • Update the 'sqlalchemy.url' in alembic.ini with your database username and password

Running Service

docker-compose up -d

Running Migrations

In order to update the database to the correct state run the following

docker exec -it bot alembic upgrade head

Usage

/start

In the channel you want DIP-bot to post to call the command to start posting.

/stop

Stops posting for the channel that it was called from

/get_one_image

You can also get one image by calling this command

/reset_viewed

Delete the stored seen images file to allow previously seen images to be posted again

/post_amount [1-5]

How many images to post at a time.

/post_frequency [1-5]

How many times per day split evenly to post.

/health_check

Checks on the bot status by returning a message of "I'm Alive"

Current Issues

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3

About

DIP-Bot is a Discord image posting bot

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages