-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Javier Blasco
committed
Mar 4, 2021
1 parent
80dcb07
commit 5600a70
Showing
39 changed files
with
81 additions
and
41 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
module.exports = { | ||
name: 'test', | ||
music: true, | ||
async execute(msg) {}, | ||
}; | ||
|
||
// const { prefix: basePrefix } = require('../config'); | ||
|
||
// module.exports = { | ||
// name: 'message', | ||
// async execute(client, msg) { | ||
// // Comprueba si el comando debe ejecutarse | ||
// if (!msg.content.startsWith(basePrefix) || msg.author.bot) { | ||
// return; | ||
// } | ||
|
||
// // Obtiene el nombre del comando y los argumentos | ||
// const args = msg.content.slice(basePrefix.length).trim().split(/ +/); | ||
// const commandName = args.shift().toLocaleLowerCase(); | ||
|
||
// // Obtiene el comando introducido por el usuario | ||
// const commands = client.commands; | ||
// const command = | ||
// commands.get(commandName) || | ||
// commands.find((cmd) => cmd.aliases && cmd.aliases.includes(commandName)); | ||
|
||
// if (!command) return; | ||
|
||
// // Comprueba si debe actualizar los datos del servidor | ||
// if (command.music) { | ||
// const { music, channels } = msg.guild; | ||
// await music.checkServerData(); | ||
|
||
// // Datos del servidor | ||
// const musicData = music.serverData; | ||
// // Obtiene el canal de gestión | ||
// const managementChannel = channels.cache.get( | ||
// musicData.player.textChannel | ||
// ); | ||
|
||
// if (!managementChannel && command.name !== 'setup') { | ||
// return msg.reply( | ||
// 'No se ha encontrado el canal de gestión.\n' + | ||
// 'Para reproducir música debes configurar el servidor con `!setup`' | ||
// ); | ||
// } else { | ||
// if (managementChannel) await music.fetchPlayerMessage(); | ||
|
||
// if (msg.channel.id === musicData.player.textChannel) | ||
// command.isManagementChannel = true; | ||
// else command.isManagementChannel = false; | ||
// } | ||
// } | ||
|
||
// // Realiza la ejecución del comando | ||
// try { | ||
// command.execute(msg, args); | ||
// } catch (error) { | ||
// console.error( | ||
// `Ha ocurrido un error al tratar de ejecutar el comando (${command.name}): ${error.message}` | ||
// ); | ||
// } | ||
// }, | ||
// }; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.