mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 23:36:29 +02:00
Update micro correction trep + update help
This commit is contained in:
@@ -19,7 +19,7 @@ function commandsList(client, category, prefix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
aliases: ['h', 'aide'],
|
aliases: ['', 'h', 'aide'],
|
||||||
description: 'Affiche la liste des commandes disponibles',
|
description: 'Affiche la liste des commandes disponibles',
|
||||||
emote: '📚',
|
emote: '📚',
|
||||||
utilisation: '[commande]',
|
utilisation: '[commande]',
|
||||||
@@ -54,7 +54,7 @@ module.exports = {
|
|||||||
.setDescription(`Voici le panel d'aide du bot. Pour plus d'informations sur une commande, utilisez ${prefix}help <commande>\n\n> **🎙️ Récompenses vocales :**\n> Vous gagnez \`100\` coins toutes les \`15\`minutes lorsque vous êtes en vocal (**NON MUTE** sinon c'est \`50\`coins).\n \n> **📺 Récompenses de streaming :**\n> Activer un stream vous fera gagner \`200\`.\n \n> **📷 Récompenses de caméra :**\n> Activer votre caméra vous fera gagner \`200\`.\n\n> Le coins est une monnaie fictive.`)
|
.setDescription(`Voici le panel d'aide du bot. Pour plus d'informations sur une commande, utilisez ${prefix}help <commande>\n\n> **🎙️ Récompenses vocales :**\n> Vous gagnez \`100\` coins toutes les \`15\`minutes lorsque vous êtes en vocal (**NON MUTE** sinon c'est \`50\`coins).\n \n> **📺 Récompenses de streaming :**\n> Activer un stream vous fera gagner \`200\`.\n \n> **📷 Récompenses de caméra :**\n> Activer votre caméra vous fera gagner \`200\`.\n\n> Le coins est une monnaie fictive.`)
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 1/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 1/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
const leftButton = new ButtonBuilder()
|
const leftButton = new ButtonBuilder()
|
||||||
.setCustomId('left')
|
.setCustomId('left')
|
||||||
@@ -83,10 +83,10 @@ module.exports = {
|
|||||||
collector.on('collect', async i => {
|
collector.on('collect', async i => {
|
||||||
if (i.customId === 'left') {
|
if (i.customId === 'left') {
|
||||||
page--;
|
page--;
|
||||||
if (page < 1) page = 11;
|
if (page < 1) page = 10;
|
||||||
} else if (i.customId === 'right') {
|
} else if (i.customId === 'right') {
|
||||||
page++;
|
page++;
|
||||||
if (page > 11) page = 1;
|
if (page > 10) page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (page === 1) {
|
if (page === 1) {
|
||||||
@@ -98,7 +98,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'casino', prefix))
|
.setDescription(commandsList(client, 'casino', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 2/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 2/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage2], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage2], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 3) {
|
} else if (page === 3) {
|
||||||
@@ -108,7 +108,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'jeux', prefix))
|
.setDescription(commandsList(client, 'jeux', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 3/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 3/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage3], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage3], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 4) {
|
} else if (page === 4) {
|
||||||
@@ -118,7 +118,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'achats', prefix))
|
.setDescription(commandsList(client, 'achats', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 4/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 4/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage4], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage4], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 5) {
|
} else if (page === 5) {
|
||||||
@@ -128,7 +128,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'jobs', prefix))
|
.setDescription(commandsList(client, 'jobs', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 5/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 5/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage5], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage5], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 6) {
|
} else if (page === 6) {
|
||||||
@@ -138,7 +138,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'teams', prefix))
|
.setDescription(commandsList(client, 'teams', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 6/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 6/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage6], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage6], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 7) {
|
} else if (page === 7) {
|
||||||
@@ -148,17 +148,17 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'teams admin', prefix))
|
.setDescription(commandsList(client, 'teams admin', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 7/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 7/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage7], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage7], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 8) {
|
} else if (page === 8) {
|
||||||
const embedPage8 = new EmbedBuilder()
|
const embedPage8 = new EmbedBuilder()
|
||||||
.setTitle('🤝・Alliance')
|
.setTitle('🤝・Alliance')
|
||||||
.setThumbnail(message.guild.iconURL())
|
.setThumbnail(message.guild.iconURL())
|
||||||
.setDescription(`page 8`)
|
.setDescription(commandsList(client, 'alliance', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 8/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 8/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage8], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage8], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 9) {
|
} else if (page === 9) {
|
||||||
@@ -168,7 +168,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'gestion', prefix))
|
.setDescription(commandsList(client, 'gestion', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 9/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 9/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage9], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage9], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
} else if (page === 10) {
|
} else if (page === 10) {
|
||||||
@@ -178,17 +178,7 @@ module.exports = {
|
|||||||
.setDescription(commandsList(client, 'bot control', prefix))
|
.setDescription(commandsList(client, 'bot control', prefix))
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Page 10/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Page 10/10 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|
||||||
i.update({ embeds: [embedPage10], components: [row], allowedMentions: { repliedUser: false } });
|
|
||||||
} else if (page === 11) {
|
|
||||||
const embedPage10 = new EmbedBuilder()
|
|
||||||
.setTitle('👑・Alliance')
|
|
||||||
.setThumbnail(message.guild.iconURL())
|
|
||||||
.setDescription(commandsList(client, 'alliance', prefix))
|
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
|
||||||
.setTimestamp()
|
|
||||||
.setFooter({ text: `Page 11/11 | Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
|
||||||
|
|
||||||
i.update({ embeds: [embedPage10], components: [row], allowedMentions: { repliedUser: false } });
|
i.update({ embeds: [embedPage10], components: [row], allowedMentions: { repliedUser: false } });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ module.exports = {
|
|||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle('Reputation ajouté !')
|
.setTitle('Reputation ajouté !')
|
||||||
.setDescription('Vous avez ajouter une reputation à la team `' + team.name + '`, qui a maintement `' + team.reputation + 1 + '` reputation !')
|
.setDescription('Vous avez ajouter une reputation à la team `' + team.name + '`, qui a maintement `' + (team.reputation + 1) + '` reputation !')
|
||||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
.setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||||
|
|||||||
Reference in New Issue
Block a user