30 lines
745 B
Plaintext
30 lines
745 B
Plaintext
|
module.exports = {
|
||
|
name: 'res',
|
||
|
aliases: [],
|
||
|
utilisation: '{prefix}res',
|
||
|
|
||
|
async execute(client, message) {
|
||
|
|
||
|
const { exec } = require("child_process");
|
||
|
|
||
|
// if (!args[0]) return message.channel.send("Il faut mettre le lien de la musique ! ");
|
||
|
|
||
|
message.channel.send(`Ta demande a été pris en compte ! `);
|
||
|
|
||
|
|
||
|
const doExec = (cmd, opts = {}) => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
exec(cmd, opts, (err, stdout, stderr) => {
|
||
|
if (err) return reject({ stdout, stderr });
|
||
|
resolve(stdout);
|
||
|
});
|
||
|
});
|
||
|
};
|
||
|
|
||
|
//::doExec(`deemix -b flac -p /home/Plex/Musiques/ ${args}`) //Ici rentre la commande que tu veux executer
|
||
|
|
||
|
doExec(`touch /storage/Lantium/test.txt`)
|
||
|
|
||
|
},
|
||
|
};
|