Browse Source

memes4

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

+ 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");

+ 1
- 1
bot.js~ View File

@@ -55,7 +55,7 @@ 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);
};

Loading…
Cancel
Save