discord-logging

0.4.2 • Public • Published

Discord-logger

A simple yet good purpose built logging plugin. To get started there are a few things that should be setup in order to be sure it runs.

configuring the plugin

Inside of your bots core startup file include the logger. This will also bundle chalk for CLI logging of some events.

const Discord = require('discord.js');
const client = new Discord.Client();
const logger = require('discord-logging');
 
logger(client, {
  logChannel: 'logs',
  welcomeChannel: 'introductions' // this is where you will put your logging channel
});
 
client.login(tokenBoiHere);

versions

  • 0.3.8 working base with bad README
  • 0.3.9 updated last versions README
  • 0.4.0 same stuff different update
  • 0.4.1 updated welcome logs and added in two events.
  • 0.4.2 removed those two events. Seemingly broke after release.

Package Sidebar

Install

npm i discord-logging

Weekly Downloads

0

Version

0.4.2

License

ISC

Unpacked Size

4.49 kB

Total Files

3

Last publish

Collaborators

  • g-strada