The Discord bot project for the server Underworld - Onmyoji Arena 决战平安京.
- Python 3.12 (higher versions not tested)
- discord.py 2.6.4 or above
It is recommended to set up a venv for the project.
Execute main.py in the repository's root folder with Python.
Tenjo is mainly configured via environment variables.
| Environment Variable | Required? | |
|---|---|---|
| TENJO_TOKEN | Yes | Sets the authentication token for the bot. |
| TENJO_SERVER | Yes | Sets the server ID that the bot operates on. |
| TENJO_DBPATH | No | Sets the SQLite database path. Defaults to tenjo.db. |
Unlike most bots, Tenjo is designed to be used on a single server! The bot cannot be added to another server and still work correctly with the current code. If you are interested in using Tenjo, you should create your own app on the Discord Developers portal and use your own token to run your own instance for your own server.
MIT