This Discord bot is based on how Roboragi detects content searches. It uses AniList to search for media, characters, staffs, and studios.
- Set DISCORD_KEY=<your_key_here> as a enviroment variable
- Build project
gradle build
or./gradlew build
- Run project
gradle run
- Build project
gradle build
or./gradlew build
- Build image
docker build -t kotlin-anilist-bot .
- Run image
docker run --env DISCORD_KEY=<your_key_here> kotlin-anilist-bot
When a message is sent the bot looks if the message starts with (<, {) and ends with (>, }). If the message does it will first set if it is a ANIME or MANGA query, then it will remove (<, {) and (>, }) from the message. After that it will start the search by making a post call to AniList:s GraphQL API. When it receive the response it is parsed and then a message will be created to reply to the user.
Name | Syntax | Description | Example |
---|---|---|---|
Anime | {text here} | Used to search for media | {one piece} |
Manga | <text here> | <one piece> | |
Character | (text here) | Used to search for characters | (luffy) |
Staff | [text here] | Used to search for staff | (eiichiro oda) |
Studio | >text here< | Used to search for studios | >toei animation< |
- Add Media search
- Add Staff search
- Add Character search
- Add Studio search
- Use Design Pattern
- Docker