Repository navigation
Commands
Every command works with the > prefix (>start ...) and as a slash command (/start ...). Slash commands suggest
the server (and the backup) while you type, so you don't need to copy server IDs.
| Command | Who | Description |
|---|---|---|
list |
everyone | Lists all servers with their ID, IP and port |
stats <server_id> |
everyone | Shows whether the server runs, its players, version, CPU and RAM |
start <server_id> |
everyone | Starts the server |
stop <server_id> |
everyone | Stops the server. Refused while players are online |
restart <server_id> |
everyone | Restarts the server. Refused while players are online |
backup <server_id> [backup] |
bot owner | Starts a Crafty backup. Without a name the default backup configuration of the server is used |
help |
everyone | Lists the commands you can use |
Example: >start da459ce3-6964-46b8-bb21-1c3e753b6ba9. You get the server IDs with >list.
If Crafty can't ping a server (for example while it is starting), its player count is unknown. stop and restart
still work then, and the bot logs a warning.
Each server command can be switched off with a feature flag in the Web Dashboard. A disabled command answers with
"The command is currently disabled" and is hidden from help.
| Command | Description |
|---|---|
sync |
Registers the slash commands with Discord |
commands |
Shows how many slash commands are registered |
clear |
Removes the slash commands from the bot's command tree (run sync afterwards to remove them from Discord) |
get_token |
Logs in to Crafty again with CRAFTY_USERNAME and CRAFTY_PASSWORD
|
Slash commands only appear in Discord after the bot owner runs this once (and after updates that add commands):
>sync
With GUILD_ID set, the commands are registered for that Discord server and appear immediately. Without it they are
registered globally, and Discord can take a while to show them.
Setup
Usage
Help