mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-16 08:12:36 +02:00
Update help with good configurationon commands
This commit is contained in:
@@ -3,7 +3,10 @@ const { PermissionsBitField } = require('discord.js');
|
||||
module.exports = {
|
||||
name: 'invite',
|
||||
description: 'Crée un lien d\'invitation pour un serveur spécifique',
|
||||
emote: '🔗',
|
||||
utilisation: 'invite [guildId]',
|
||||
category: 'botcontrol',
|
||||
|
||||
async execute(message, args, client) {
|
||||
// Vérifie si l'ID du serveur a été fourni
|
||||
if (!args[0]) {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
name: 'leave',
|
||||
description: 'Faire quitter le bot d\`un serveur',
|
||||
emote: '🚪',
|
||||
utilisation: 'leave [guildId]',
|
||||
category: 'botcontrol',
|
||||
|
||||
async execute(message, args, client) {
|
||||
|
||||
// If an ID is provided, try to get the guild with that ID
|
||||
const guildId = args[0];
|
||||
if (guildId) {
|
||||
const guild = client.guilds.cache.get(guildId);
|
||||
if (guild) {
|
||||
guild.leave();
|
||||
message.reply(`Je vien de quitté: ${guild.name}`);
|
||||
} else {
|
||||
message.reply('Je ne suis pas dans ce serveur.');
|
||||
}
|
||||
} else {
|
||||
message.guild.leave();
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -3,6 +3,8 @@ const { ActivityType } = require("discord.js");
|
||||
module.exports = {
|
||||
name: 'listen',
|
||||
description: 'Changer le status du bot en listen',
|
||||
emote: '🎧',
|
||||
utilisation: 'listen <status>',
|
||||
category: 'botcontrol',
|
||||
async execute(message, args, client) {
|
||||
const streamText = args.join(' ') || 'Streaming';
|
||||
|
||||
@@ -3,7 +3,10 @@ const { ActivityType } = require("discord.js");
|
||||
module.exports = {
|
||||
name: 'play',
|
||||
description: 'Changer le status du bot en play',
|
||||
emote: '🎵',
|
||||
utilisation: 'play <status>',
|
||||
category: 'botcontrol',
|
||||
|
||||
async execute(message, args, client) {
|
||||
const streamText = args.join(' ') || 'Streaming';
|
||||
const streamURL = 'https://www.twitch.tv/valou336_yt';
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
module.exports = {
|
||||
name: 'say',
|
||||
description: 'Fait dire quelque chose au bot',
|
||||
emote: '💬',
|
||||
utilisation: 'say <message>',
|
||||
category: 'botcontrol',
|
||||
async execute(message, args) {
|
||||
// Vérifie si un message a été spécifié
|
||||
|
||||
@@ -5,6 +5,8 @@ const path = require('path');
|
||||
module.exports = {
|
||||
name: 'servers',
|
||||
description: 'Liste les serveur du bot',
|
||||
emote: '🌐',
|
||||
utilisation: 'servers',
|
||||
category: 'botcontrol',
|
||||
async execute(message, args, client) {
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
module.exports = {
|
||||
name: 'set',
|
||||
description: 'Modifier divers paramètres du bot.',
|
||||
category: 'botcontrol',
|
||||
name: 'set',
|
||||
description: 'Modifier divers paramètres du bot.',
|
||||
emote: '⚙️',
|
||||
utilisation: 'set <name/pic> <nom/lien>',
|
||||
category: 'botcontrol',
|
||||
async execute(message, args, client) {
|
||||
// Vérifiez si l'utilisateur a fourni suffisamment d'arguments
|
||||
if (args.length < 2) {
|
||||
|
||||
@@ -3,6 +3,8 @@ const { ActivityType } = require("discord.js");
|
||||
module.exports = {
|
||||
name: 'stream',
|
||||
description: 'Mettre le bot en stream',
|
||||
emote: '🎥',
|
||||
utilisation: 'stream <status>',
|
||||
category: 'botcontrol',
|
||||
async execute(message, args, client) {
|
||||
const streamText = args.join(' ') || 'Streaming';
|
||||
|
||||
@@ -3,7 +3,10 @@ const { ActivityType } = require("discord.js");
|
||||
module.exports = {
|
||||
name: 'watch',
|
||||
description: 'Changer le status du bot en watch',
|
||||
emote: '👁️',
|
||||
utilisation: 'watch <status>',
|
||||
category: 'botcontrol',
|
||||
|
||||
async execute(message, args, client) {
|
||||
const streamText = args.join(' ') || 'Streaming';
|
||||
const streamURL = 'https://www.twitch.tv/valou336_yt';
|
||||
|
||||
Reference in New Issue
Block a user