end of work commit

This commit is contained in:
Robert Drake 2020-11-03 02:48:39 -06:00
parent d5c96bc236
commit 6f15be8e06
1 changed files with 8 additions and 3 deletions

11
bot.js
View File

@ -37,9 +37,14 @@ bot.addListener("pm", function(from, message) {
});
bot.addListener("message", (nick, to, text, message) => {
console.log(to);
if(!text.startsWith("*")) {
console.log("Not for me!");
let arrayText = text.split(" ");
if(!to.startsWith("#")) {
return;
}
if(!arrayText[0].startsWith("*")) {
console.log("Not for me");
return;
}
});