Bot pro KSP Discord
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Daniel Skýpala 37a6ba07e8 Service: Restart on failure 3 weeks ago
bin Add enabling / disabling cogs to config 5 months ago
cobuild Service: Restart on failure 3 weeks ago
common Container build system 1 year ago
data.example Added example files 1 year ago
hrochobot Messages: Remove ctx typing 1 month ago
.gitignore Added example files 1 year ago
README.md README: Document commands 4 months ago
config.example.json Add enabling / disabling cogs to config 5 months ago
requirements.txt News: New requirements 6 months ago
setup.py Requirements should be also listed in setup.py 6 months ago

README.md

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.

Messages

/set_forward_channel <#channel>

Sets channel to forward messages to.

>forward

Forwards message to set channel

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.