diff --git a/commands/Games/chess.js b/commands/Games/chess.js new file mode 100644 index 0000000..da1d464 --- /dev/null +++ b/commands/Games/chess.js @@ -0,0 +1,16 @@ +const { DiscordTogether } = require('discord-together'); + +client.discordTogether = new DiscordTogether(client); + +module.exports = { + name: 'chess', + aliases: ['chess'], + utilisation: '{prefix}chess', + + execute(client, message) { + + client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'chess').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**`); + }); + }, +}; \ No newline at end of file diff --git a/commands/Games/poker.js b/commands/Games/poker.js new file mode 100644 index 0000000..ea356ff --- /dev/null +++ b/commands/Games/poker.js @@ -0,0 +1,16 @@ +const { DiscordTogether } = require('discord-together'); + +client.discordTogether = new DiscordTogether(client); + +module.exports = { + name: 'poker', + aliases: ['pocker'], + utilisation: '{prefix}poker', + + execute(client, message) { + + client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'poker').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**`); + }); + }, +}; \ No newline at end of file diff --git a/commands/core/yttogether.js b/commands/Games/yttogether.js similarity index 100% rename from commands/core/yttogether.js rename to commands/Games/yttogether.js diff --git a/config.example.js b/config.example.js deleted file mode 100644 index ef2a6a3..0000000 --- a/config.example.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - app: { - prefix: '$', - token: '' - }, - db: { - DATABASE_URI: "", - }, - opt: { - DJ: { - enabled: false, - roleName: 'DJ', - commands: ['back', 'clear', 'filter', 'loop', 'pause', 'resume', 'seek', 'shuffle', 'skip', 'stop', 'volume'] - }, - maxVol: 100, - loopMessage: false, - discordPlayer: { - ytdlOptions: { - quality: 'highestaudio', - highWaterMark: 1 << 25, - type: 'opus', - } - } - } -};