Skip to content

Commit

Permalink
Merge pull request #1 from NocFA/rcon-implement
Browse files Browse the repository at this point in the history
Final RCON implement
  • Loading branch information
NocFA authored Feb 26, 2024
2 parents bba4e1d + 24249b1 commit 212661b
Show file tree
Hide file tree
Showing 6 changed files with 257 additions and 63 deletions.
6 changes: 0 additions & 6 deletions .env example

This file was deleted.

11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DISCORD_TOKEN=""
PTERODACTYL_API_KEY=""
PTERODACTYL_PANEL_URL=""
PTERODACTYL_SERVER_ID=""
NOTIFICATION_CHANNEL_ID=""
RESTART_NOTIFICATION_ROLE_ID=""
ADMIN_ROLE_ID=""
SERVER_IP=""
RCON_PORT=""
RCON_PASSWORD=""
RESTART_INTERVAL=""
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
bot_activity.log
venv
assets
.vscode
run.json
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,15 @@ Do note, with the latter option, if you exit the shell, the bot will also exit,
## Default .env requirements:

```
DISCORD_TOKEN= # Your Discord bot token
PTERODACTYL_API_KEY= # Your Pterodactyl account API key (NOT APPLICATION API)
PTERODACTYL_PANEL_URL= # Your Pterodactyl's public URL (for API)
PTERODACTYL_SERVER_ID= # Your Pterodactyl server ID, grab from admin area
NOTIFICATION_CHANNEL_ID= # Channel you want to notify users in about the restart
RESTART_NOTIFICATION_ROLE_ID= # Role to ping for the notification
DISCORD_TOKEN="" # Your Discord bot token
PTERODACTYL_API_KEY="" # Your Pterodactyl account API key (NOT APPLICATION API)
PTERODACTYL_PANEL_URL="" # Your Pterodactyl's public URL (for API)
PTERODACTYL_SERVER_ID="" # Your Pterodactyl server ID, grab from admin area
NOTIFICATION_CHANNEL_ID="" # Channel you want to notify users in about the restart
RESTART_NOTIFICATION_ROLE_ID="" # Role to ping for the notification
ADMIN_ROLE_ID="" (Optional) # Role for admin RCON commands (broadcast, restart, etc)
SERVER_IP="" # (Optional) Your server's IP address.
RCON_PORT="" # (Optional) Your RCON port, this is separate from main port, default is 25575.
RCON_PASSWORD="" # (Optional) If using RCON, set the server admin password here, yes, you have to have one/.
RESTART_INTERVAL="" # This is what actually defines how often the server should auto-restart, use format of `hours=6`, `minutes=15` etc.
```
Loading

0 comments on commit 212661b

Please sign in to comment.