Skip to content

Commit e92de90

Browse files
committed
testing change of activation words
1 parent 0acb77e commit e92de90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": []

bot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var botID = process.env.BOT_ID;
55

66
function respond() {
77
var request = JSON.parse(this.req.chunks[0]),
8-
botRegex = /^\/give cookie$/;
8+
botRegex = /^\/give cookie to /;
99

1010
if(request.text && botRegex.test(request.text)) {
1111
this.res.writeHead(200);
@@ -21,7 +21,7 @@ function respond() {
2121
function 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',

0 commit comments

Comments
 (0)