mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-11 15:56:27 +02:00
add rolebutton
This commit is contained in:
@@ -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".');
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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(' ');
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user