A bot for Warga Nusantara Teyvat a.k.a WARNET (https://discord.gg/warnet-gi).
- python 3.10
- postgresql
- Fork or clone the project
- Create a New Application.
- Create a bot by going to Bot -> Add Bot -> Yes, do it!
- Copy the bot token and paste it into the
BOT_TOKEN
environment variable (see the next step). - Rename
.env.example
to.env
and edit.env
to your bot. - Create python virtual environment by using
python -m venv env
. - Enter the virtual environment by using command
source env/Scripts/Activate
(Linux) orenv\Scripts\Activate.bat
(Windows) - Make sure you have installed
poetry
. Install it usingpip install poetry
on your virtual environment. - Install the depedencies using
poetry install
. - Execute the database creation script from
bot\data\db.sql
on your database console. - Set
BOT_DEBUG=1
to run the bot in debug mode on.env
. Set to0
only for production. - To start the bot, use
poetry run task start
.
To learn how to use this bot, please visit our wiki documentation for the commands info.
The Warnet Bot is open-sourced software licensed under the MIT License.