On this page

Documentation

For players: how to book. For administrators: how to configure the rules. Command names and descriptions in Discord are in English; the bot answers in Polish by default (/settings language changes that).

For players

  1. /register character submits a Tibia character and gives you a code. Paste it in the "Comment" field on tibia.com.
  2. /register verify checks the code through TibiaData and grants the role. An administrator can require that your Discord nickname matches the character name (/config nick-match, off by default).
  3. /booking add from:21:00 to:23:30 in a spot's channel reserves the range (times in Tibia server time, Europe/Berlin). The spot and day options let you pick another spot or day.

Commands for everyone

CommandWhat it does
/register charactersubmits a character and gives you a code to paste on tibia.com
/register verifychecks the code and grants the role
/settings languagethe language of the bot's answers to you (pl or en)
/rulesshows the current rules of the server (limits, booking window, roles and the other settings), only to you

/rules privately shows the same summary the bot keeps on the rules channel: every setting of the server with its current value, in the language of the posts. It works without a rules channel too. The bot edits the message on the channel after every change made with /config and puts it back when somebody deletes it (within 15 minutes).

Bookings

Available to verified players.

CommandWhat it does
/booking addreserves a spot for a time range
/booking updatechanges or shortens your own booking
/booking cancelcancels your own booking
/booking listshows your ongoing and upcoming bookings
/booking show-freeshows the spots that are free for the whole given range
/booking statsshows how booked the spots were, the peak hours and your own hours over the last 7, 30 or 90 days
/booking hereconfirms that you are at your spot, so your reservation is not released

/booking stats (option days: 7, 30 or 90) privately shows how booked the spots were (hours and share of the period), the three peak hours in server time with a bar of the day, and your own hours. It counts reservations that have already passed, without cancelled ones, and does not reveal other players.

Daily, standing bookings

Available once an administrator turns them on. A daily does not block a spot permanently and has no priority: the bot makes an ordinary booking for a given day when that day enters the booking window. If someone was quicker, that day is lost and you see it on your list. Cancelling one generated booking (/booking cancel) removes only that day; the daily stays.

CommandWhat it does
/booking daily addsets a standing booking: every day or on chosen weekdays
/booking daily listshows your dailies and the days skipped because of a collision
/booking daily cancelremoves a daily together with its upcoming bookings

For administrators

Management commands

CommandWhoWhat it does
/admin cancelmanagement rolecancels any booking
/admin historymanagement roleshows what happened on a spot in a time range: bookings, changes, cancellations, daily and refusals, in order
/admin verifymanagement rolemanual verification when TibiaData is down
/admin daily-prioritymanagement rolegives a daily priority or takes it away
/config …configuration roleall bot settings (below)

/admin and /config are hidden by default from people without administrator permissions. The bot checks permissions anyway.

/admin history answers privately, with the entries in the order they were written and the time down to the second. It lists the reservations that overlap the given hours of the day, so you can see who took a spot from whom. The history is written from the moment the feature was deployed and kept for the chosen number of days.

The /config settings

Sub-commandMeaning
categories add|removecategories whose channels are spots (there can be several)
verified-rolethe role after verification (with a role it sets it, without one it clears it)
manage-rolethe role that manages bookings
config-rolethe role that may configure the bot
daily allowed:trueturns dailies on (off by default)
booking-windowhow far ahead players may reserve (below)
daily-limita player's time limit per spot per day (3.5 hours by default)
multiple-blockswhether a player may have several bookings per spot per day
conflictswhether bookings of different players may overlap
daily-priority allowed:truenew dailies have priority: first in a conflict, and with conflicts not allowed their time is free of other reservations (off by default)
daily-priority-admins allowed:trueserver owner only: whether managers may give priority to a single daily with /admin daily-priority (by default only the owner)
history-retentionhow many days the spot history is kept (1 to 30, 3 by default)
nick-match required:truewhether the Discord nickname must match the character (off by default)
world set|clearonly characters from one Tibia world can verify (any world by default). The administrator types the world name, the bot does not check it
min-level set|clearthe minimum character level to verify, 1 to 5000 (none by default). Players already verified keep their access, and a manual verification by a manager skips the requirements
no-showrelease a spot when its player does not confirm presence in time (off by default; 10 to 60 minutes after the start, 15 by default)
rules-channel set|clearrules-channel set picks the channel where the bot keeps one message with the full summary of the rules, rules-channel clear removes it
post-cleanup allowed:trueremoves the post of a day from the channel after midnight server time (off by default, posts of past days stay)
category-resettakes the overrides of a category away (all, or one setting): the category follows the settings of the server again
show, resetview the settings and go back to the defaults

A change applies to later bookings; existing ones stay. Until the bot is configured only /config works.

Settings per category. The commands booking-window, daily, daily-limit, multiple-blocks, conflicts, daily-priority, no-show and min-level take the category option: with it the setting applies to the spots of that category only, without it to the whole server. A category with no override follows the server. min-level with a category is the minimum level to reserve in it (checked against the current level of the character), without one it is the requirement at verification. /config show and /rules show what differs.

Presence on the spot

Optional, off by default (/config no-show allowed:true). A player confirms presence with /booking here from 10 minutes before the start to the end of the grace period (15 minutes after the start by default). A reservation that is not confirmed by then is cancelled by the bot with the reason "no show", and the spot is free for anyone. A reservation placed when its range is already in progress is confirmed at once. The bot also reminds the owner in the spot's channel when the window to confirm opens, and removes the reminder once it is no longer needed. The day post shows ⏳ presence until 19:15 or ✅ next to the entry.

Many servers and tiers

One deployment serves many Discord servers. Every server has its own spots, reservations, characters, settings and history, and a character is verified separately on every server. A new server starts as demo (up to 10 spots and 300 active reservations), the standard tier has 100 spots and 3000 reservations. Channels over the limit are inactive, and /config show shows the tier and its limits.

The bot runs on a free plan, so it serves up to 15 standard servers and up to 30 demo ones at a time. A configured server over the limit waits for a free place (the /config command still works). A standard server is served at least every 5 minutes, a demo one at least every 10 (more often while there are few servers), so the release of a spot for a no-show may come up to 5 or 10 minutes late.

The owner of the bot manages the servers with the npm run guilds script: list, tier, block, delete, allow and limits. A limit of commands per minute guards against floods, and the data of a server the bot was removed from is deleted after 30 days.

Booking window

  • /config booking-window rolling [hours] (24 by default): a booking must fit within the chosen number of hours ahead (1 to 48).
  • /config booking-window server-save: the window ends at the nearest server save (10:00 server time). A booking must end at the latest at that moment, so at 9:00 you can book at most until 10:00, and after 10:00 until 10:00 the next day. In this mode the daily limit and "one block per day" count a day from server save to server save, and a daily crossing 10:00 is not accepted.

A refusal because of the window says until which time you can reserve.

Limits and conflicts

  • A player cannot have two bookings that overlap in time, on any spots. This rule is fixed and applies to dailies too.
  • On one spot a player may have at most the limit in a day (/config daily-limit hours:3.5).
  • /config multiple-blocks allowed:false leaves a player one booking per spot per day.
  • /config conflicts allowed:true allows bookings of different players to overlap. The post then shows the conflicting bookings in one block with a ⚔️ header and the order number [n]. The bot does not pick a winner; the players settle it.
  • /config daily-priority allowed:true makes new dailies priority ones (off by default). With conflicts on, their reservation is first in the conflict block; with conflicts off, nobody else may reserve or move a reservation onto their time, even before the bot has placed them. Nobody's reservation is cancelled by it. /admin daily-priority gives or takes away the priority of one daily; by default only the owner of the server may. The owner (and only the owner) can allow managers with /config daily-priority-admins allowed:true.
  • Settings can be overridden for one category of spots by adding the category option to the same /config command (booking window, dailies, limit, several blocks, conflicts, daily priority, no-show release and the minimum level to reserve). A category with no override follows the server. /config category-reset takes the overrides away, and /config show and /rules show the differences. The minimum level of a category applies to reserving and dailies, and the bot checks it against current data of the character.
  • The post of today (Tibia server time) has a bright green bar, and the posts of other days have none. /config post-cleanup allowed:true (off by default) removes the post of a day from the channel after midnight server time. Reservations and the history of the spot stay.