File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " Cookie Bot" ,
3- "description" : " Basic Groupme Bot written in Node " ,
3+ "description" : " Gives out Cookies " ,
44 "repository" : " https://github.com/petemcgrath/cool-guy-bot" ,
55 "logo" : " http://www.tailgate365.com/wp-content/uploads/2011/06/tom-hanks-906.jpg" ,
66 "keywords" : []
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var botID = process.env.BOT_ID;
55
66function respond ( ) {
77 var request = JSON . parse ( this . req . chunks [ 0 ] ) ,
8- botRegex = / ^ \/ g i v e c o o k i e $ / ;
8+ botRegex = / ^ \/ g i v e c o o k i e t o / ;
99
1010 if ( request . text && botRegex . test ( request . text ) ) {
1111 this . res . writeHead ( 200 ) ;
@@ -21,7 +21,7 @@ function respond() {
2121function postMessage ( ) {
2222 var botResponse , options , body , botReq ;
2323
24- botResponse = "Have a cookie! " ;
24+ botResponse = "*Giving " + request . text + " a goddamn cookie* ";
2525
2626 options = {
2727 hostname : 'api.groupme.com' ,
You can’t perform that action at this time.
0 commit comments