Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added install instructions for slack-irc

...

(NOTE: The "nohup" command ensures that kompewter will keep running even after you log off the server.)


Slack / IRC integration bot

As we now have a DSpace Slack setup, this bot integrates our DSpace Slack with IRC (per the below configuration). It allows messages to be sent from Slack to IRC and vice versa.

Installation

Currently, this installation is NOT automated via Puppet (That should be changed at some point)

We are using this tool: https://github.com/ekmartin/slack-irc

Installation is rather simple:

Code Block
# Ensure we have NPM & Node
# NOTE: "nodejs-legacy" ensures the 'node' command maps to 'nodejs' 
sudo apt-get install npm nodejs nodejs-legacy
# Install slack-irc tool
sudo npm install -g slack-irc
# Create a folder where we can store its config, etc.
mkdir ~/slack-irc

Configuration

Per the documentation at https://github.com/ekmartin/slack-irc , we just need a valid JSON config file to configure this bot.

Here's the current config:

Code Block
[
  {
    "nickname": "DSpaceSlackBot",
    "server": "irc.freenode.net",
    "token": "xoxb-147848164820-lkHcW1gt1C01X4kxx3EKtQR4",
    "channelMapping": {
      "#dev-mtg": "#duraspace",
      "#irc": "#dspace"
    }
  }
]

This configuration ensures messages on #duraspace IRC are also on the Slack #dev-mtg channel (and vice versa). It also ensures messages on #dspace IRC are also on the Slack #irc channel (and vice versa)

Starting / Stopping slack-irc

To start the slack-irc bot just run:

Code Block
cd ~/slack-irc
nohup slack-irc --config config.json > slack-irc.log &

(NOTE: The "nohup" command ensures that slack-irc will keep running even after you log off the server.)

Java Profiling using YourKit

...