17 lines
547 B
JavaScript
17 lines
547 B
JavaScript
|
const { DiscordTogether } = require('discord-together');
|
||
|
|
||
|
client.discordTogether = new DiscordTogether(client);
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'yttogether',
|
||
|
aliases: ['yttogether', 'yt'],
|
||
|
utilisation: '{prefix}yt',
|
||
|
|
||
|
execute(client, message) {
|
||
|
|
||
|
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtube').then(async invite => {
|
||
|
return message.channel.send(`Pour lancer l'activité merci de cliquer sur le lien suivant : ${invite.code} et pas sur le bouton **Jouer**`);
|
||
|
|
||
|
});
|
||
|
},
|
||
|
};
|