Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Fixes to console bot
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Brown committed Jun 19, 2017
1 parent 046f130 commit c1afb76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/console_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,13 @@ controller.hears(['shutdown'], 'message_received', function(bot, message) {


controller.hears(['uptime', 'identify yourself', 'who are you', 'what is your name'],
'direct_message,direct_mention,mention', function(bot, message) {
'message_received', function(bot, message) {

var hostname = os.hostname();
var uptime = formatUptime(process.uptime());

bot.reply(message,
':robot_face: I am a bot named <@' + bot.identity.name +
'>. I have been running for ' + uptime + ' on ' + hostname + '.');
':robot_face: I am ConsoleBot. I have been running for ' + uptime + ' on ' + hostname + '.');

});

Expand Down

0 comments on commit c1afb76

Please sign in to comment.