A Discord Bot connected to your Pterodactyl API.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: events register with type module

authored by

cosmeak and committed by
Cosmeak
0324767f 05a79ad4

+5 -2
+3 -1
src/commands/ClientServerList.js
··· 15 15 }, 16 16 }); 17 17 18 + console.log(response); 19 + 18 20 let message = ""; 19 21 response.data.data.forEach((server) => { 20 - message += `**${server.attributes.name}** [${server.attributes.identifier}]\n\n`; 22 + message += `**${server.attributes.name}** [ ${server.attributes.identifier} ]\n\n`; 21 23 }); 22 24 23 25 const embed = new EmbedBuilder()
+2 -1
src/services/Bot.js
··· 53 53 54 54 for (const file of eventsFiles) { 55 55 const filePath = path.join(eventsPath, file); 56 - const event = await import(filePath); 56 + let event = await import(filePath); 57 + event = event.default; 57 58 if (event.once) this.client.once(event.name, (...args) => event.execute(...args)); 58 59 else this.client.on(event.name, (...args) => event.execute(...args)); 59 60 }