From 36bd81fcb9a0d1703eedc507f51e01a5bf1d9b11 Mon Sep 17 00:00:00 2001 From: Aaron Ogle Date: Thu, 2 Jun 2016 21:40:12 -0500 Subject: [PATCH] Include version number in startup log --- src/rocketchat.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rocketchat.coffee b/src/rocketchat.coffee index f474a3929..6da7ce4ce 100644 --- a/src/rocketchat.coffee +++ b/src/rocketchat.coffee @@ -11,6 +11,7 @@ try catch prequire = require('parent-require') {Robot,Adapter,TextMessage, EnterMessage, User, Response} = prequire 'hubot' +pkg = require '../package.json' Q = require 'q' Chatdriver = require './rocketchat_driver' @@ -33,7 +34,7 @@ class RocketChatResponse extends Response class RocketChatBotAdapter extends Adapter run: => - @robot.logger.info "Starting Rocketchat adapter..." + @robot.logger.info "Starting Rocketchat adapter version #{pkg.version}..." @robot.logger.info "Once connected to rooms I will respond to the name: #{@robot.name}" @robot.alias = RocketChatUser unless @robot.name is RocketChatUser || @robot.alias