Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

icarusbot

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icarusbot

An IRC bot.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

##ICARUS BOT Icarus

This is a very simple IRC bot that I built from scratch because I wanted to learn about RFC 2812 and RFC 1459.

##Creating a bot:

  • Copy config.dist.json to config.json
  • Fill out all the stuff in config.json
  • Write a bot consumer
    var bot = require('icarusbot')
    var plugin-foo = require('icarubot-plugin-foo')(bot)`
    var plugin-bar = require('icarubot-plugin-bar')(bot)`
    
  • Run your bot node whatever-you-name-your-bot.js

##Creating a plugin: The bot currently emits various events that you can listen to, most notably the msg event.

Here is a simple plugin:

module.exports = function(bot) {
  bot.on('msg',function(msg) {
    console.log(msg) // {sender: 'a_nick', chan: '##foo', msg: 'foo bar baz'}

    // bot.msg() supports writing messages in a sane way.
    if (msg.msg === 'wow') {
      bot.msg(['#channel1', '#channel2'], 'mom')
    }
  })
}

#Current plugins (PR to add yours!): icarusbot-lysergix:

  • Adds a handler for a !face message that posts a random face from [lysergix-api](Adds a handler for a !face message that posts a random face from lysergix-api)

FAQs

Package last updated on 26 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc