Bot pro KSP Discord
Find a file
2026-05-16 19:07:09 +02:00
bin Add enabling / disabling cogs to config 2023-12-06 20:13:45 +01:00
cobuild Service: Restart on failure 2024-04-02 13:22:04 +02:00
common Container build system 2023-04-16 17:57:36 +02:00
data.example Added example files 2023-03-30 14:45:28 +02:00
hrochobot Remove messages 2026-05-16 18:52:20 +02:00
.gitignore Added example files 2023-03-30 14:45:28 +02:00
config.example.json Remove messages 2026-05-16 18:52:20 +02:00
README.md Remove messages 2026-05-16 18:52:20 +02:00
requirements.txt News: New requirements 2023-11-06 11:58:50 +01:00
setup.py Setup: Add missing o 2026-05-16 19:07:09 +02:00

Hrochobot

Discord bot for KSP discord server.

Installation

First install all required libraries:

pip install -r requirements.txt

Then create data folder from data.example:

cp data.example data -r

Same for config.json:

cp config.example.json config.json -r

Lastly paste your discord bot token into config.json. If you do not have any discord bot, learn how to create one here: https://discordjs.guide/preparations/setting-up-a-bot-application.html#your-bot-s-token

Running

To run the bot simply execute main.py:

./main.py

Commands

Basic

/sayhello

Prints Hello world!

/ping

Shows the bot's latency.

Roles

/secretroles

Manages roles locked behind a password.

Lock @role behind a password supersecret:

/secretroles add @role supersecret

Delete password supersecret, so role is no longer obtainable with it:

/secretroles delete supersecret

List all current passwords and their roles:

/secretroles list

KSP

Ksp related commands

/task

Generates urls for given task.

/deadlines

Shows deadlines of currently running series.

News

/news set_channel <#channel>

Set channel for posting news.

/news post_news <id>

Post news with given id to set channel.