PteroBot is simple discord bot utilizing pterodactyl api made using JDA and Pterodactyl4J.
You run this bot like any other Java application, simple java -jar PteroBot.jar
.
On first startup you will be asked for some basic information that bot requires to function normally.
- Fully customizable (all messages and embeds)
- Specific node info
- Status of all nodes
- Discord and pterodactyl account linking
- Account info
- Managing (sort of) servers over discord
- Panel registration
Templates of all embeds used by the bot are present in /embeds/
directory and are in yaml format.
Example of node info embed:
title: Node info
description: "%name\n%description"
color: 39129
author:
name: PteroBot
fields:
f1:
name: Status
value: %statusEmoji %status
inline: true
f2:
name: Running servers
value: %runningServers
inline: false
f3:
name: Location
value: %location
inline: true
f4:
name: Maintenance mode
value: %maintenance
inline: true
f5:
name: Allocations
value: %allocationsCount
inline: true
f6:
name: CPU usage
value: %cpuUsed %
inline: false
f7:
name: Disk usage
value: %diskUsed GB / %diskLimit GB
inline: false
f8:
name: Memory usage
value: %ramUsed MB %memoryUsageBar %ramLimit MB
inline: false
footer:
text: PteroBot | Node
icon_url: https://images.g2crowd.com/uploads/product/image/social_landscape/social_landscape_9f7bed1018bc7ad75c94da92c83c76de/pterodactyl-panel.png
timestamp: %timestamp
It also comes with an option to automatically update message every 5 minutes.
Warning Be careful while using auto update option, bot might get rate-limited (Discord API being very strict for editing messages)
Warning Same as with node info, there is option for auto update, be careful
By default, every member can manage servers with their own api key !
By default, /account register
command is admin only, you can enable it to everyone by setting EnabledRegistration
config
option to true