Browse Source

memes6

master
calexil 2 years ago
parent
commit
d28d450d59
2 changed files with 3 additions and 7 deletions
  1. 1
    2
      bot.js
  2. 2
    5
      bot.js~

+ 1
- 2
bot.js View File

@@ -54,12 +54,11 @@ client.on("message", (message) => {
}
});

Object.keys(phrase_responses).forEach(function(phrase) {
object.keys(responseObject).forEach(function(phrase) {
if (my_input.contains(phrase) {
response = phrase_responses[phrase];
bot.sendMessage(message, response);
}

});

// Ping server every 15 minutes to prevent web dyno from sleeping

+ 2
- 5
bot.js~ View File

@@ -54,14 +54,11 @@ client.on("message", (message) => {
}
});

Object.keys(phrase_responses).forEach(function(phrase) {
object.keys(responseObject).forEach(function(phrase) {
if (my_input.contains(phrase) {
response = phrase_responses[phrase];
bot.sendMessage(message, response);
}

});

};

// Ping server every 15 minutes to prevent web dyno from sleeping
var http = require("http");

Loading…
Cancel
Save