Sign inSign up

makerslocal/rqirc

By makerslocal

•Updated about 9 years ago

Redqueen IRC modules for use at Makers Local 256

Image
0

500K+

makerslocal/rqirc repository overview

⁠rqirc

rqirc is a irc gateway for the RedQueen⁠ network.

⁠Usage

  • Create config/production.json and use 'export NODE_ENV=production'
    • Change anything from config/default.json
  • docker run -d -e NODE_CONFIG="$(cat config/production.json)" makerslocal/rqirc

⁠API

⁠IRC
  • config - options from config file
  • client - client connection information
  • colors - set irc colors
  • debugSend(msg) - print message to debugchannel
  • send(to, msg, actionable) - send irc message
  • irc.rqevent.on('msg.command', function(msg))
  msg = {
     'channel' : channel
     'command' : command,
     'nick'    : sender.nick,
     'message' : message
 };
⁠MQTT
  • mqtt.send
    • function(topic, message)
  • mqtt.subscribe('topic')
    • mqtt.mqevent.on('topic') - data is in format of sender
⁠Plugins
  • go in irc_modules directory
  • subscribed to events on mqtt
    • messages are received in a format the mqtt publisher decides.

⁠Software

Tag summary

Content type

Image

Digest

Size

100.3 MB

Last updated

about 9 years ago

docker pull makerslocal/rqirc