npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slack-irc-bot

v2.0.1

Published

A Slack to IRC bot

Downloads

9

Readme

slack-irc-bot is a Slack to IRC bot written in JavaScript for Node.

The application passes messages between a Slack channel and an IRC channel in both directions.

Build Status

Installation

Install from npm:

npm install slack-irc-bot

You can also clone this repository with git:

git clone https://github.com/kurkku/slack-irc-bot.git

and install dependencies using npm:

cd slack-irc-bot
npm install

slack-irc-bot can be used as a module, too:

var Bot = require('slack-irc-bot');
var config = require('./your_config.json');
Bot(config);

Note: node-irc depends on a character-set detection library icu. Your host must have libiconv and libicu installed in order to use this functionality -- otherwise you'll recieve errors when building these dependencies. However, node-irc will install and work fine -- without character-set functionality -- even though icu won't install correctly.

Configuration

You must have a Slack bot token to be able to use Slack Real Time Messaging API. Create one at https://my.slack.com/services/new/bot for your team.

Parameters

The bot is configured by editing config/config.json file. The configuration file must be passed to the application upon startup.

Required parameters

  • slack.token: Your Slack bot token
  • slack.channel: Channel name that is replayed in IRC and where IRC messages are written to
  • irc.server: IRC server domain name
  • irc.nick: Nickname of the IRC bot
  • irc.userName: Username of the bot
  • irc.channel.name: Name of the IRC channel
  • irc.channel.protected: Is the channel password-protected?
  • irc.channel.password: Password of the channel

Optional parameters

  • slack.autoReconnect: Should client reconnect upon disconnect
  • slack.autoMark: Should read messages be marked as read
  • irc.port: IRC server port. If undefined, 6667 is used.
  • irc.realName: Real name of the bot
  • irc.localAddress: Local address of your host (optional)
  • irc.debug: If enabled debug messages are written to console.
  • irc.encoding: Encoding which IRC messages are converted to. Slack expects UTF-8.

Running

Start the bot with node app.js -c your_config.json

If the bot was installed globally using npm install --global slack-irc-bot you can start it with slack-irc-bot as well.

Running tests

Run tests with npm run test and npm run coverage

Docker

A Docker container of slack-irc-bot is available here.