A discord bot that searches for anime.
Made using the discord.py framework, and the AniList API
I use Discord often and occasionally I like to pull up information about an anime to display, I wrote this bot to make finding and displaying info on anime accessible right from Discord.
The bot uses the AniList API as the other APIs I found didn't give me the query results I was looking for. I would have use the MyAnimeList API however because firstly it required an Oauth2.0 flow that I felt was uncessary, and secondly because the API is in Beta I decided against using it.
This bot is currently under development but here are a few of the commands:
search
Searches for anime given a query string, optionally you can specify what type of media you are looking for.
seasonal
Sends the top seasonal anime for a given season and year. It defaults to the current season and year and 3 results displayed.
info
Sends the info for an anime specified with the MAL id.
In the works:
- Random messages to spice things up!
The project can be deployed by navigating to the root folder of the project and running the ./src/setup.py file to generate the .env file.
It can also be generated manually using the following format:
TOKEN="token"
DUMP_CHANNEL=123456
COMMAND_PREFIX="command_prefix"
ABOUT_ME="about_me"From there the Docker Image can be created and run by running:
./scripts/dockerstart.sh irohaAlternatively you can run the two following commands manually:
cd ./Iroha
sudo docker build -t iroha -f ./scripts/Dockerfile .
docker run -d \
-it \
--name iroha \
--mount type=bind,source=$(pwd)/src/data,target=/home/bot/src/data,readonly \
iroha