discord-logs-pack
v1.0.2
Published
discord-logs-pack is a package through which you can set logs for your discord robot, customized or default. ## Setup for default logs ```Javascript let Discord = require("discord.js") let logs = require("discord-logs-pack"); let client = new Discord.Clie
Downloads
4
Readme
discord-logs-pack
discord-logs-pack is a package through which you can set logs for your discord robot, customized or default.
Setup for default logs
let Discord = require("discord.js")
let logs = require("discord-logs-pack");
let client = new Discord.Client()
let logsdata = {
client: client,
saves: true, //true or false
costum: false
}
logs.execute(logsdata)
client.login(process.env.token)
Setup costum logs
let Discord = require("discord.js")
let logs = require("discord-logs-pack");
let client = new Discord.Client()
let logsdata = {
client: client,
saves: true, //true or false
costum: {
unhandledrejection: "||Your message||",
error: "||Your message||",
warn: "||Your message||",
debug: "||Your message||"
}
}
logs.execute(logsdata)
client.login(process.env.token)
Get saves
- Note: You need to have saves on
let Discord = require("discord.js")
let logs = require("discord-logs-pack");
let client = new Discord.Client()
let logsdata = {
client: client,
saves: true, //true or false
costum: {
unhandledrejection: "||You message||",
error: "||Your message||",
warn: "||Your message||",
debug: "||Your message||"
}
}
logs.execute(logsdata)
let savedlogs = logs.saves()
console.log(savedlogs)
client.login(process.env.token)