UNPKG

easy-discord-logs

Version:

Advanced discord logs system and easy usage!

30 lines (28 loc) 1.11 kB
## About Using this package you can easily create an advanced logs system in your bot! ## Installation ```npm i --save easy-discord-logs``` ## Example usage In your server type [prefix]help logs to see the logs setup commands! ```js (async () => { const client = await require("easy-discord-logs").init({ mongodb: "MONGO DB URI", prefix: "PREFIX", token: "DISCORD TOKEN", }); //Random Methods client.logsCommands.get("commandName"); //Collection client.logsCommands.set("commandName", Command) client.logsAliases.get("aliasName"); //Collection client.logsAliases.set("aliasName", Command) client.logsEvents.get("Event Name"); // Collection client.prefix; //String client.prefix = "newPrefix"; //String client.logs.get("GuildId"); //Collection of all the logs settings })(); //The client in this package is same as discord client but with more stuff. so You can simply do client.on('message',message=>{//something}) etc //Good Luck with your bot! Made by ソビ#2143 on discord //Join our discord server for help: https://discord.gg/z8WH5yAhER ```