mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-18 21:40:04 +02:00
update
This commit is contained in:
+13
-1
@@ -1,10 +1,13 @@
|
||||
import { Message, Events } from "discord.js";
|
||||
const getPrefix = require("../fonctions/getPrefix");
|
||||
import { Permissions } from "discord.js-selfbot-v13"
|
||||
|
||||
module.exports = {
|
||||
name: Events.MessageCreate,
|
||||
async execute(message: Message, client: any) {
|
||||
if (!message.author.id === client.user.id) return;
|
||||
const prefix = '!!'
|
||||
|
||||
const prefix = await getPrefix()
|
||||
if (message.content.startsWith(prefix)) {
|
||||
const args = message.content.slice(prefix.length).trim().split(/ +/);
|
||||
const commandName = args.shift()?.toLowerCase();
|
||||
@@ -20,6 +23,15 @@ module.exports = {
|
||||
} catch (error) {
|
||||
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 !`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user