Letter is a Discord bot for reserving respawns in Tibia. It registers slash commands allowing users to manage their respawn bookings.
Currently used by servers with over 3k members.
Hosted version is available on demand. Reach out on Tibialoot Discord Server.
Self-hosting is possible but it's your job to figure out how you want it done. If you require support, hit us up Tibialoot Discord Server.
Letter bot originated within Refugees, the dominating guild on one of the oldest Tibia servers, Celesta.
docker
anddocker-compose
(unless you want to go bare-metal),make
(unless you want to run commands manually),go
(if you want to develop),
- Copy
.env.example
to.env
and fill in the values (or leave as-is). - Run
docker-compose up -d
to start the stack. - Run
docker-compose exec bot sh -c "bin/migrate"
to apply migrations. - Run
docker-compose exec db bash -c "seed"
to fill any entry-level data. - Run
docker-compose restart bot
(as it failed originally, when the database was not set up).
- To start:
docker-compose up -d
- Development should hot reload (recompile and restart the bot) on file changes.
- To stop:
docker-compose stop
or... down
- To shut the service down,
docker-compose stop
- (optional) To remove containers and networks,
docker-compose down
- (optional) To remove the volumes, such as database,
docker volume rm letter_bot_postgres
If you change SQL schema in any way, remember to:
- regenerate sqlc:
make sqlc-generate
- this generates Go wrapper around our queries, - run
docker-compose exec bot sh -c "bin/generate_migration <YOUR_MIGRATION_NAME>"
- so if you change a timestamp, you could name it"users_timestamps"
.
We will be very happy for each contribution.
- Fork the repository
- Create a branch with your changes
- Push the branch to your fork
- Create a pull request
- Wait for the review
Letter-bot is one of many tools prototyped by (and for) TibiaLoot.com
Author: marahin
Contributors: