diff --git a/commands/setautovoc.ts b/commands/bot/setautovoc.ts similarity index 94% rename from commands/setautovoc.ts rename to commands/bot/setautovoc.ts index 69240a1..6a35ec7 100644 --- a/commands/setautovoc.ts +++ b/commands/bot/setautovoc.ts @@ -1,7 +1,7 @@ import { Message, Client } from 'discord.js'; import sqlite3 from 'sqlite3'; require('dotenv').config(); -const joinVC = require('../fonctions/joinVC'); +const joinVC = require('../../fonctions/joinVC'); module.exports = { aliases: ['autovocset', 'autovoc'], diff --git a/commands/setprefix.ts b/commands/bot/setprefix.ts similarity index 100% rename from commands/setprefix.ts rename to commands/bot/setprefix.ts diff --git a/commands/info.ts b/commands/info.ts new file mode 100644 index 0000000..9aed30f --- /dev/null +++ b/commands/info.ts @@ -0,0 +1,13 @@ +import { Message, Client } from 'discord.js'; + +module.exports = { + aliases: [], + description: 'Avoir des infos sur le bot.', + emote: '⏱️', + utilisation: '', + + async execute(message: Message, args: string[], client: Client) { + message.edit(`Salut bg !\nJe vend des bots, des selfbots, des tokens et de l'herbergement, me mp pour plus d'infos !\nN'hésite pas a regarder mon profil pour plus d'infos !`); + + } +}; \ No newline at end of file diff --git a/events/messageCreate.ts b/events/messageCreate.ts index 33c7f64..4b374b6 100644 --- a/events/messageCreate.ts +++ b/events/messageCreate.ts @@ -24,14 +24,6 @@ module.exports = { console.error(error); } - } else if (message.content === `<@!${client.user.id}>` || message.content === `<@${client.user.id}>`) { - const channel: any = message.channel; - if (channel.type === 'GUILD_TEXT') { - const permissions = channel.permissionsFor(client.user); - if (permissions?.has(Permissions.FLAGS.SEND_MESSAGES)) { - message.reply(`Salut bg !\nJe vend des bots, des selfbots, des tokens et de l'herbergement, me mp pour plus d'infos !\nN'hésite pas a regarder mon profil pour plus d'infos !`); - } - } - } + } } }; \ No newline at end of file