Attack-on-Titan Themed Discord Bot
This was a discord bot that I built for fun to use with my friends in our private server a few years ago. The main goal was to have a countdown timer that we could see daily showing the amount of time left until the newest season / episodes of our favorite show(s) premiered.
The bot has a very limited amount of commands built in, but it should be easy to add more if desired.
The code definitely isn't clean or efficient, but this was a great introduction to me in using APIs and building software out of any ideas that came to mind.
- At least Python 3.5.3
- Discord module, installed with
pip3 install discord
- python-dotenv for reading environment variables, installed with
pip3 install python-dotenv
- certifi for handling SSL Certificate Verification, installed with
pip3 install certifi
- Clone the repository onto wherever you plan to run the bot
- Login to the discord developer portal and create a New Application
- Select the application in the My Applications section
- Open the navigation menu on the top left and click Bot
- Click Add Bot (Make sure your application name isn't extremely common or else you will get an error)
- Click Reset Token then Yes, do it!
- If you have 2FA setup, you will have to enter your authenticator code.
- Create a .env file in the project's root directory and type
DISCORD_TOKEN=<YOUR_TOKEN_HERE>
, replacing the entire right-hand side with the token that shows up after step 6- NOTE: If you are hosting the server on a cloud service, you should be able to provide the environment variables directly in the application settings.
- Run the bot with the command
python3 mikasaBot.py