public
imalexnord
read
Discord-Hetzner-Bot
No description yet
Languages
Repository composition by tracked source files.
Python
100%
Create file
Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/discord-hetzner-bot.git
ssh://[email protected]:2222/user/imalexnord/discord-hetzner-bot.git
Trace
README.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
# Looks like the code is currently broken, I haven't found the time yet to fix it
3
<hr>
5
# Discord-Hetzner-Bot
6
A discord bot to start a hetzner cloud server from a snapshot with the data on a separate volume
8
## Requirements
9
- python library hcloud-python
10
- instal via pip install hcloud
11
- python library discord
12
- install via pip install discord
14
## Usage
15
- get a API token for the hetzner cloud project
16
- get a discord app and create a bot
17
- get the bot token
18
- create a snapshot with the app data on a separate volume
19
- modify the tokens.py and settings.py for your needs
21
## Notes
22
I recommend the usage of a systemd service unit for the bot itself, because currently the bot tends to stop while waiting for the server creation.
23
Also I recommend to make sure that the running application/game saves all data before exiting for example with an additional ExecStop line in the service unit which simply executes a sleep command.
24
The basic idea was a discord bot to start a gameserver when needed.