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 start the application stack
- Make a folder called
nagatoro
- Copy the
docker-compose.yml
file to this directory - Under
services>nagatoro
replace the line containingbuild .
withimage: ghcr.io/daste745/nagatoro/nagatoro:latest
to use the latest public image, without needing to build it every time - Copy
env.example
, rename it to.env
and change the configuration variables appropriately - Copy
redis.conf
to your directory - Run
docker-compose up -d
- this should pull the latest public image and start the application stack - Use
docker-compose pull
to update and restart the stack withdocker-compose up -d
To check logs, use docker-compose logs
or docker-compose logs nagatoro
if you only want to see bot logs
- 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