logger-system
v2.0.0
Published
![alt text](https://cdn.discordapp.com/attachments/944961145582784582/961681851024560229/Picsart_22-04-06_18-12-56-543.jpg) ## Install **Require Discord.js V13 Or High | Node 16 Or High.** ```sh-session npm i logger-system ``` ## Define Client For Packa
Downloads
7
Maintainers
Readme
Install
Require Discord.js V13 Or High | Node 16 Or High.
npm i logger-system
Define Client For Package :
- The Bot Is Require (CHANNEL , REACTION , MESSAGE) Partials
const log = require('logger-system')
const {Client,Intents} = require('discord.js') ////13
const client = new Client({ intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_INVITES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Intents.FLAGS.GUILD_INVITES,
], partials: [
"MESSAGE",
"CHANNEL",
"REACTION"
]});
const logger = new log(client)
logger.on('ready', bot => {
console.log(`${bot.username} is ready`)
})
client.login('token here')
Reaction Logger :
logger.on('reactionLog', (user,message) => {
console.log(`
Emoji Added By :
${user.username}
in :
${message.channel.name}
message author :
${message.user.username}
`)
})
File Logger :
- When Some One Delete Message If The Message Include Attachments The Bot Will Log it
logger.on('fileLog',(url,user,channel) => {
console.log(`
${user.username} Deleted A message in ${channel.name}
Message Attachment url :
${url}
`)
})
Guild Join / Leave Logger :
logger.on('memberJoin', (member,inviter) => {
console.log(`
${member.username} Joined The Guild By ${inviter.username}
`)
})
logger.on('memberLeave', (member,inviter) => {
console.log(`
${member.username} Leaved The Guild
`)
})