This is an open source Discord Bot project that allows you to manage the Pterodactyl Panel!
# Linux/macOS
python3 -m pip install -U py-dactyl
# Windows
py -3 -m pip install -U py-dactyl
- First what you need to get is your Pterodactyl Panel link and place it in the
PANEL_LINK
section of the code (under theclient
variable). Don't forget to include thehttp(s)://
on the link too.
client = PterodactylClient('PANEL_LINK', 'SECRET_APPLICATION_API')
- You need to obtain your super secret applcation API by doing:
-
-
Make sure you are in the Panel under Admin Mode and head over to the
Application API
section to the left. -
Click
Create New
in the top right corner.
- Select all permissions as
Read & Write
- Fill out the description with what you want!
- Click
Create Credentials
! - Insert the
key
whereSECRET_APPLICATION_API
is in the code (under theclient
variable)
client = PterodactylClient('PANEL_LINK', 'SECRET_APPLICATION_API')
- Create a Bot Token by going to Discords Applications Section and click
New Application
then you can name it whatever you want. After that, navigate to theBot
tab and clickCreate Bot Application
once you created the bot application, click onCopy
under the Token tab of theBot
Section and paste it in asBOT_TOKEN
in the code
-
-
bot.run('BOT_TOKEN', reconnect=True, bot=True)
- Customize the bot status!
- Go to: the code and under
activity = discord.Activity(name='CUSTOM_STATUS', type=discord.ActivityType.watching)
you can set CUSTOM_STATUS
to whatever you want, you can also change watching
to playing
so the status says "Playing CUSTOM_STATUS"
- More custom things coming soon!
- Normal Commands
,ping
Allows you to check the bots latency.,uptime
Allows you to check how long the bot has been up for.
- Panel Commands
,create <arg>
Creates<arg>
which can be:server
,getuser <user_attribute>
Allows you to lookup users on the panel.,link
Allows you to link a Discord user with a panel ID (must have linked.json to do it)
- Customizable: Bot Prefix, Panel Link, Application API, Bot Status, Bot Token
- Allows you to link Panel Users with Discord Users
- More coming soon