Skip to content

This is an open source Discord Bot project that allows you to manage the Pterodactyl Panel!

Notifications You must be signed in to change notification settings

INfoUpgraders/Pterodactyl-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pterodactyl-Discord-Bot

This is an open source Discord Bot project that allows you to manage the Pterodactyl Panel!

getting a user

Install py-dactyl

# Linux/macOS
python3 -m pip install -U py-dactyl

# Windows
py -3 -m pip install -U py-dactyl

How to get started

  • First what you need to get is your Pterodactyl Panel link and place it in the PANEL_LINK section of the code (under the client variable). Don't forget to include the http(s):// on the link too.
 client = PterodactylClient('PANEL_LINK', 'SECRET_APPLICATION_API')
  • You need to obtain your super secret applcation API by doing:
      1. Make sure you are in the Panel under Admin Mode and head over to the Application API section to the left. admin application

      2. Click Create New in the top right corner.

      create new

      1. Select all permissions as Read & Write

      read and write perms

      1. Fill out the description with what you want!
      2. Click Create Credentials!
      3. Insert the key where SECRET_APPLICATION_API is in the code (under the client variable)

      key

      client = PterodactylClient('PANEL_LINK', 'SECRET_APPLICATION_API')
      1. 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 the Bot tab and click Create Bot Application once you created the bot application, click on Copy under the Token tab of the Bot Section and paste it in as BOT_TOKEN in the code
bot.run('BOT_TOKEN', reconnect=True, bot=True)

Customization

  • 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!

Commands

  • 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)

Features

  • Customizable: Bot Prefix, Panel Link, Application API, Bot Status, Bot Token
  • Allows you to link Panel Users with Discord Users
  • More coming soon

About

This is an open source Discord Bot project that allows you to manage the Pterodactyl Panel!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages