end of work commit
This commit is contained in:
parent
d5c96bc236
commit
6f15be8e06
11
bot.js
11
bot.js
|
@ -37,9 +37,14 @@ bot.addListener("pm", function(from, message) {
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.addListener("message", (nick, to, text, message) => {
|
bot.addListener("message", (nick, to, text, message) => {
|
||||||
console.log(to);
|
let arrayText = text.split(" ");
|
||||||
if(!text.startsWith("*")) {
|
if(!to.startsWith("#")) {
|
||||||
console.log("Not for me!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!arrayText[0].startsWith("*")) {
|
||||||
|
console.log("Not for me");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue