Browse Source

memes4

master
calexil 2 years ago
parent
commit
4f585703c7
2 changed files with 6 additions and 3 deletions
  1. 3
    1
      bot.js
  2. 3
    2
      bot.js~

+ 3
- 1
bot.js View File

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

object.keys(responseObject).forEach(function(phrase) {
Object.keys(phrase_responses).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");
setInterval(function() {

+ 3
- 2
bot.js~ View File

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

object.keys(responseObject).forEach(function(phrase) {
if (my_input.contains(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