Add Games

This commit is contained in:
Lantium 2022-04-11 00:46:24 +02:00
parent 634f6771df
commit 983abedd32
4 changed files with 32 additions and 25 deletions

16
commands/Games/chess.js Normal file
View File

@ -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**`);
});
},
};

16
commands/Games/poker.js Normal file
View File

@ -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**`);
});
},
};

View File

@ -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',
}
}
}
};