add rolebutton

This commit is contained in:
VALOU3336
2024-03-01 12:05:29 +01:00
parent 7ff8c0237f
commit 2b9c5efa33
20 changed files with 189 additions and 30 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Active ou désactive l\'alerte.',
category: 'gestion',
emote: '📢',
utilisation: '+alerte <on/off>',
utilisation: 'alerte <on/off>',
async execute(message, args) {
if (!args.length) return message.reply('Veuillez spécifier "on" ou "off".');
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Affiche et configure les logs du serveur.',
category: 'gestion',
emote: '📝',
utilisation: '+logs',
utilisation: 'logs',
async execute(message, args) {
let data = await new Promise((resolve, reject) => {
db.get('SELECT value FROM gestion WHERE id = ?', [message.client.user.id], (err, row) => {
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = {
description: 'Enregistre l\'ID d\'un salon pour les logs de messages.',
category: 'gestion',
emote: '📝',
utilisation: '+messagelog [#salon/id]',
utilisation: 'messagelog [#salon/id]',
async execute(message, args, client) {
let channelId;
const mentionedChannel = message.mentions.channels.first();
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = {
description: 'Enregistre l\'ID d\'un salon pour les logs de modération.',
category: 'gestion',
emote: '📝',
utilisation: '+modlog [#salon/id]',
utilisation: 'modlog [#salon/id]',
async execute(message, args) {
let channelId;
const mentionedChannel = message.mentions.channels.first();
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Enregistre l\'ID d\'un salon pour les logs de raid.',
category: 'gestion',
emote: '📝',
utilisation: '+raidlog [#salon/id]',
utilisation: 'raidlog [#salon/id]',
async execute(message, args) {
let channelId;
const mentionedChannel = message.mentions.channels.first();
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Enregistre le message pour les logs de raid.',
category: 'antiraid',
emote: '📝',
utilisation: '+raidping <message>',
utilisation: 'raidping <message>',
async execute(message, args) {
// Join all elements from args[0] onwards to form the full message
const messageContent = args.slice(0).join(' ');
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Enregistre l\'ID d\'un salon pour les logs de rôles.',
category: 'gestion',
emote: '📝',
utilisation: '+rolelog [#salon/id]',
utilisation: 'rolelog [#salon/id]',
async execute(message, args) {
let channelId;
const mentionedChannel = message.mentions.channels.first();
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
description: 'Enregistre l\'ID d\'un salon pour les logs vocaux.',
category: 'gestion',
emote: '📝',
utilisation: '+vocallog [#salon/id]',
utilisation: 'vocallog [#salon/id]',
async execute(message, args) {
let channelId;
const mentionedChannel = message.mentions.channels.first();