Skip to content

Commit

Permalink
Add userName and realName to the bot
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyoconnor committed Feb 28, 2016
1 parent 0f07ff6 commit fcc6e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ircbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var postMessage = function (text) {
client.say(CHANNEL, text);
};

var client = new irc.Client(SERVER, NICK, {channels: [CHANNEL]});
var client = new irc.Client(SERVER, NICK, {userName: 'scrumbot', realName: 'OpenMRS Scrum Bot', channels: [CHANNEL]});
log.info("Connected to " + CHANNEL);

client.addListener('error', function (message) {
Expand Down Expand Up @@ -82,4 +82,4 @@ client.addListener('message', function (from, to, message) {
module.exports.shouldStartListening = shouldStartListening;
module.exports.shouldStopListening = shouldStopListening;
module.exports.shouldListBuildFailures = shouldListBuildFailures;
module.exports.postMessage = postMessage;
module.exports.postMessage = postMessage;

0 comments on commit fcc6e0e

Please sign in to comment.