Nagatoro
Invite Nagatoro to your server
Earn experience through typing and level up and gain coin rewards.
As a moderator, you can mute and warn members on your server.
Thanks to AniList's API, you can see info about you favorite anime, manga, studio and much more on the fly. More features are coming soon™️.
Make sure you have docker
and docker-compose
installed.
There are two ways to run Nagatoro through docker:
- Clone the repository
- Rename
.env.example
to.env
and populate it with approperiate configuration variables - Run
docker-compose up -d
- this should build the image and run the app - To check logs, use
docker-compose logs
- Make a folder called
nagatoro
- Inside the folder create a file named
docker-compose.yml
with this content:
version: "3"
services:
nagatoro:
image: ghcr.io/stefankar1000/nagatoro/nagatoro:latest
restart: unless-stopped
environment:
- TOKEN=bot_token
- PREFIX=prefix
- ...
- Add other variables in the
environment
section, same as in .env.example - Start with
docker-compose up -d
and check logs withdocker-compose logs
- To update the image to its latest version, use
docker-compose pull
and restart withdocker-compose up -d
- Make sure you have python version 3.8 or higher installed. You can check by running
python3 --version
- Rename
.env.example
to.env
and fill in all required configuration values - Create a Discord application and input its token into the config
- (optional) Get a Tenor API key and add it to the config
- Put credentials to a MySQL database in the config
- Install all dependencies:
python3.8 -m pip install -r requirements.txt --upgrade --user
- Run the bot:
python3.8 nagatoro.py