Giter Club home page Giter Club logo

pterobot's Introduction

PteroBot

PteroBot is simple discord bot utilizing pterodactyl api made using JDA and Pterodactyl4J.

First time running

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.

Setup

Features

  • 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

Customizing

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

Specific node info

Node Info
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)

Nodes status

Node Status

Warning Same as with node info, there is option for auto update, be careful

Managing servers

Server list   Server manage

By default, every member can manage servers with their own api key !

Registration

Registration
By default, /account register command is admin only, you can enable it to everyone by setting EnabledRegistration config option to true

pterobot's People

Contributors

goksi avatar magnetitemc 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.