Coder Social home page Coder Social logo

jastinxyz / whatsactyl Goto Github PK

View Code? Open in Web Editor NEW
30.0 1.0 17.0 111 KB

A bot to manage Pterodactyl panels via whatsapp!

JavaScript 100.00%
baileys baileys-bot baileys-md bot bots pterodactyl pterodactyl-api pterodactyl-app pterodactyl-panel pterodactyl-panel-api

whatsactyl's Introduction

whatsactyl

A bot to manage Pterodactyl panels via whatsapp!

Many thanks to ThisMe124 for contributing so much to building this bot from scratch.

For now, maybe there are still many shortcomings, such as the command is not fully available for category applications and others, we really welcome if there are contributors who want to build this bot together.

Bots will run better when used in private messages instead of in groups... But it's up to you!

Instalation

  • Clone this repository
git clone https://github.com/JastinXyz/whatsactyl
  • Install the dependencies
npm install
  • Fill in the configuration in config.json (See the configuration details HERE)
  • Run the bot
node .
  • Scan the QR
  • Enjoy!

Showcase

img

Configuration

Refer to config.json

{
  "prefix": "!",
  "autoread": true,
  "mongodb": "",
  "ownerNumber": [""],
  "host": "https://domain.tld",
  "application": {
    "api_key": ""
  },
  "serverCreate": {
    "nestId": "",
    "ram": "",
    "disk": "",
    "cpu": "",
    "limits": {
      "db": "",
      "backups": "",
      "allocations": ""
    },
    "egg": [
      {
        "eggId": "",
        "environment": {
          "NAME": "VALUE",
        }
      },
      {
        "eggId": "",
        "environment": {
          "NAME": "VALUE",
        }
      }
    ]
  }
}
Object Type Description
prefix String your bot prefix
autoread String whether the bot will automatically mark the message as read.
mongodb String MongoDB database url
ownerNumber Array List of numbers that can run commands in the category owner.
host String url to your host (must use http:// or https:// as a prefix and at the end there is no slash but the last letter of your TLD)
application.api_key String Your panel's API Key. This can be overridden using the setapikey command later.
serverCreate.nestId Number ID nest in which there is an egg which will later be placed on serverCreate.egg
serverCreate.ram Number The amount of ram for each server that will be created with the command. (MB)
serverCreate.disk Number The amount of disk for each server that will be created with the command. (MB)
serverCreate.cpu Number The amount of cpu for each server that will be created with the command. (like 100, 50, etc)
serverCreate.limits.[db, backups, allocations] Number How many limits are there for the backup, database, and allocations features.
serverCreate.egg Array Fill in the array with the objects that have been sampled in there. This is very much needed for the create server command. EggId is the id of the egg, and environment is the startup variables that are needed by the egg itself.

Contributors


โญ๏ธ it if you ๐Ÿ‘๏ธ it
Minimal star atau fork bang kalo mau gunain

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.