File tree 2 files changed +1
-23
lines changed
2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,6 @@ var format = function(args) {
22
22
}
23
23
}
24
24
25
- /*
26
- controller.hears(['^bot\\s+help(\\s+(\\S+))?'],
27
- ['message_received', 'ambient'],
28
- function(bot, message) {
29
- var name = message.match[1];
30
- exec(__dirname + '/help.sh ' + name, function(err, stdout, stderr){
31
- if (err) {
32
- return bot.reply(message, format({
33
- text: stderr,
34
- color: '#ff0000',
35
- }));
36
- }
37
- var attachments = JSON.parse(stdout);
38
- return bot.reply(message, {
39
- attachments: attachments,
40
- icon_emoji: ':question:',
41
- username: 'help bot',
42
- });
43
- });
44
- });
45
- */
46
-
47
25
controller . hears ( [ '^bot\\s+(help|usage)(\\s+(\\S+))?' ] ,
48
26
[ 'message_received' , 'ambient' ] ,
49
27
function ( bot , message ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var Promise = require('bluebird')
5
5
var sprintf = require ( 'sprintf' )
6
6
7
7
var SLACK_TOKEN = process . env . SLACK_TOKEN ;
8
- var TRAVIS_CI_TOKEN = process . env . TRAVIS_TOKEN ;
8
+ var TRAVIS_CI_TOKEN = process . env . TRAVIS_CI_TOKEN ;
9
9
10
10
var controller = botkit . slackbot ( {
11
11
debug : false
You can’t perform that action at this time.
0 commit comments