Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
/ irc-logger Public archive

super-tiny IRC bot to log channels

Notifications You must be signed in to change notification settings

maxlath/irc-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

irc-logger

This is mostly useful as a way to learn about the basics of the IRC protocol, or as a very minimalist IRC setup.

Installation

git clone https://github.com/maxlath/irc-logger
npm install

then edit config/local.js to fit your needs

module.exports = {
  serverName: 'irc.freenode.net',
  port: 6667,
  user: 'chatbot',
  channels: ['#somechannel']
}

Use

Option 1 - print logs in the terminal

node server.js

Option 2 - start the process as a daemon and print logs in a file

You can use a tool like aeternum to start the process as a daemon (allowing to close the terminal while the process keeps running) and output the logs in the desired files

aeternum -o logs.txt -e errors.txt -- node server.js

then you can even follow the logs live with this command:

tail -fn 500 logs.txt errors.txt

About

super-tiny IRC bot to log channels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published