Code Monkey home page Code Monkey logo

pterodactyl-discord-bot's Introduction

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

pterodactyl-discord-bot's People

Contributors

infoupgraders avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.