Skip to content

Commit

Permalink
Updated bot message format
Browse files Browse the repository at this point in the history
  • Loading branch information
okovpashko committed Sep 22, 2015
1 parent 7101f90 commit d517822
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
const config = require( './config' ),
JiraTicket = require( './jira-ticket' ),
JiraBot = require( './jira-bot' ),
util = require( 'util' ),
log = require('winston');
log = require( 'winston' );

const onTicketFound = function ( key, channel ) {
jiraTicket.get( key, function ( error, ticket ) {
if ( error ) {
return;
}

let message = util.format( '*%s*\n>%s\n>Status: %s\n>%s', ticket.key, ticket.summary, ticket.status, ticket.url );
channel.send( message );
channel.send( `>*${ticket.key}*\n>${ticket.summary}\n>Status: ${ticket.status}\n>${ticket.url}` );
} );
};

Expand Down

0 comments on commit d517822

Please sign in to comment.