A Discord Bot connected to your Pterodactyl API.
at main 24 lines 1.1 kB view raw
1import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; 2 3export default { 4 data: new SlashCommandBuilder() 5 .setName("help") 6 .setDescription("Show all available commands"), 7 async execute(interaction) { 8 const embed = new EmbedBuilder() 9 .setTitle("Need some help?") 10 .setDescription(` 11 **PteroBot** give an access to control your server trough 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 bot development, please stars the github repository or contribute to it. https://github.com/Cosmeak/PteroBot 19 `) 20 .setTimestamp() 21 .setColor("Blurple"); 22 return interaction.reply({ embeds: [embed] }); 23 }, 24};