Browse Source

memes5

master
calexil 2 years ago
parent
commit
9fe5864327
2 changed files with 3 additions and 2 deletions
  1. 0
    1
      bot.js
  2. 3
    1
      bot.js~

+ 0
- 1
bot.js View File

@@ -62,7 +62,6 @@ Object.keys(phrase_responses).forEach(function(phrase) {

});


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

+ 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() {

Loading…
Cancel
Save