A Discord Bot connected to your Pterodactyl API.

feat: help command

authored by cosmeak.dev and committed by

Cosmeak e6f75581 1ab4ce7e

+17 -2
+1
README.md
··· 12 12 - [x] `/safemode` 👑 - Stop, Kill and backups servers from lists 13 13 - [x] `/backups {identifier}` - Show all backups for a server 14 14 - [x] `/create-backup {identifier}` - Create a new backup for a server 15 + - [x] `/help` - Show information about all available commands 15 16 16 17 <small>👑: only for admins</small> 17 18
+16 -2
src/commands/Help.js
··· 1 - import { SlashCommandBuilder } from "discord.js"; 1 + import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; 2 2 3 3 export default { 4 4 data: new SlashCommandBuilder() 5 5 .setName("help") 6 6 .setDescription("Show all available commands"), 7 7 async execute(interaction) { 8 - 8 + const embed = new EmbedBuilder() 9 + .setTitle("Need some help?") 10 + .setDescription(` 11 + **PteroBot** give an access to control your server trough this discord commands. \n 12 + **/servers** : List all your servers \n 13 + **/server {identifier}** : Show you informations about your server, like CPU, RAM, DISK utilization or Update \n 14 + **/power {identifer} {state}** : Provide you a way to change a server state (start, stop, kill or restart) \n 15 + **/backups {identifier}** : Show all your server backups \n 16 + **/create-backup {identifier}** : Create a new backup for your (within the limit of available backups) \n 17 + \n 18 + If you want to support the bot development, please stared the github repository or contribute to it. https://github.com/Cosmeak/PteroBot 19 + `) 20 + .setTimestamp() 21 + .setColor("Blurple"); 22 + return interaction.reply({ embeds: [embed] }); 9 23 }, 10 24 };