@@ -36,9 +36,25 @@ github.authenticate({
36
36
token : GITHUB_ACCESS_TOKEN
37
37
} ) ;
38
38
39
+ var format = function ( args ) {
40
+ return {
41
+ 'attachments' : [ {
42
+ 'text' : args . text ,
43
+ 'color' : args . color ,
44
+ } ] ,
45
+ 'icon_emoji' : config . slack . icon_emoji ,
46
+ 'username' : config . slack . username ,
47
+ }
48
+ }
49
+
39
50
controller . hears ( [ '^bot\\s+bump\\s+now' ] ,
40
51
[ 'message_received' , 'ambient' ] ,
41
52
function ( bot , message ) {
53
+ return bot . reply ( message , format ( {
54
+ text : 'DEPRECATED: Use version-bot instead' ,
55
+ color : '#ff0000' ,
56
+ } ) ) ;
57
+ /*
42
58
exec(__dirname + '/now.sh', function(err, stdout, stderr) {
43
59
if (err) {
44
60
return bot.reply(message, {
@@ -53,11 +69,17 @@ controller.hears(['^bot\\s+bump\\s+now'],
53
69
username: config.slack.username,
54
70
});
55
71
});
72
+ */
56
73
} ) ;
57
74
58
75
controller . hears ( [ '^bot\\s+bump\\s+(\\d+\.\\d+\.\\d+)' ] ,
59
76
[ 'message_received' , 'ambient' ] ,
60
77
function ( bot , message ) {
78
+ return bot . reply ( message , format ( {
79
+ text : 'DEPRECATED: Use version-bot instead' ,
80
+ color : '#ff0000' ,
81
+ } ) ) ;
82
+ /*
61
83
var version = message.match[1];
62
84
if (! version.match(/^\d+\.\d+\.\d+/)) {
63
85
return bot.reply(message, {
@@ -169,4 +191,5 @@ controller.hears(['^bot\\s+bump\\s+(\\d+\.\\d+\.\\d+)'],
169
191
});
170
192
});
171
193
});
194
+ */
172
195
} ) ;
0 commit comments