Create a Headless Token

A headless bot is a computer of yours that hosts rooms on Rustball, running all the time. To connect it, the bot needs two tokens:

Headless Grant TokenGiven to you by the site administrator. It proves you are allowed to run bots. Ask for it if you do not have one.
Headless TokenCreated on this page, using your Headless Grant Token. It identifies one bot. It expires after 2 hours without use; a room that stays open keeps it alive.

Revoked Headless Grant Token = all its bots are disconnected at once.

How to create it

  1. Get a Headless Grant Token from the administrator.
  2. Fill in the form below: a bot name (only for you), the room name players will see, visibility, an optional room password, and your Headless Grant Token.
  3. Press "Create Headless Token". The Headless Token is shown once, together with the configuration.
  4. Download rustball-headless.toml. It already contains the site, both tokens and the first room. Keep it private.
  5. Install the bot on your computer: download the package below, extract it, put the TOML file next to run.sh (macOS) or in /etc/rustball-headless.toml (Linux), and start it.

1 · Create

What is inside the TOML file

FieldMeaning
signal_urlThe site the bot connects to. Already set: wss://www.rustball.eu/ws.
bind_ipThe address of the computer, reachable by players. Change it to your computer's address.
[auth] grant_tokenYour Headless Grant Token.
[auth] headless_tokenYour Headless Token.
[[rooms]] nameRoom name, 1 to 40 characters. Must be unique in the file.
[[rooms]] visibilitypublic or private.
[[rooms]] passwordRoom password, or empty for none.
[[rooms]] max_connectionsMaximum players, from 1 to 22 (default 22).

Several rooms: add another [[rooms]] block with its own name and settings. Each room opens on its own.

signal_url = "wss://www.rustball.eu/ws"
bind_ip = "192.168.1.10"

[auth]
grant_token = "your Headless Grant Token"
headless_token = "your Headless Token"

[[rooms]]
name = "Evening match"
visibility = "public"
password = ""
max_connections = 22

[[rooms]]
name = "Private room"
visibility = "private"
password = "secret"
max_connections = 6

Get the bot

Download the package for the computer that will run the bot. It includes the bot program, run.sh, a systemd service for Linux and the full instructions (INSTALL.md).

Download for Linux (x86_64) · Download for macOS

Once running, the bot logs each step: start, login with both tokens, room created, players joining, matches starting and ending.

← Back to Rustball