A discord bot that allows for a daily verse to be sent. Currently, the verse is set to be sent at 8:30 AM EST. This will later be changed to a command that will allow you to schedule the time. I have implemented a /verse and /random. /verse lets you specify the book, chapter, and verse that would like to see. Optional you can provide a translation that is checked and used. /random send and completely random verse from the bible. This is a passion project that I will develop over time.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things do you need to install the software and how to install them
python: https://www.python.org/downloads/
Discord-app API Key: Private https://discord.com/developers/docs/intro
discord.py
pytz
dotenv
Python: Standard .exe installation
Following given prompts at https://discord.com/developers/docs/intro to create a discord application
pip3 install discord.py
pip3 install python-dotenv
pip3 install pytz
You would then invite the bot to your server and you would have access to the given commands.
Currently, the bot is deployed on my local network via a Raspberry PI to run 24/7.
I have had great success with this and you can easily move the working directory onto the pi and start it up by following the above prompts.
However, if the internet drops or cuts out the bot will not start automatically.
You can configure the bot to run on Pi startup. Something simple like this would suffice.
First, create a bot.sh (script) that runs the bot
cd /path/to/bot
nohup .venv/bin/python3 bot.py
Second, make the file executable
chmod +x bot.sh
Lastly, configure a way to run bot.sh on startup. I chose to use Cron
sudo crontab -e
@reboot /path/to/bot.sh
Save and you should be all set! This doesn't fix the necessary issue that is prompted when the internet drops. I have found that you can easily SSH back into the Pi and run the bot.sh script
bash path/to/bot.sh
- Discord.py - The bot framework
- Matthew Thompson - Initial work - Seazeeee
This project is licensed under the MIT License - see LICENSE.md for details