start of work commit
This commit is contained in:
parent
8b0c2094d4
commit
95797b39ca
2
bot.js
2
bot.js
|
@ -1,3 +1,4 @@
|
|||
const config = require("./config/config.json");
|
||||
const irc = require("irc-upd");
|
||||
|
||||
const options = {
|
||||
|
@ -35,6 +36,7 @@ bot.addListener("pm", function(from, message) {
|
|||
});
|
||||
|
||||
bot.addListener("message", (nick, to, text, message) => {
|
||||
console.log(to);
|
||||
if(!text.startsWith("*")) {
|
||||
console.log("Not for me!");
|
||||
return;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"owner": "IRC Username of the bot's owner",
|
||||
"apiKey": "OpenCage API Key https://opencagedata.com",
|
||||
"channels": ["array", "of", "channels", "to", "join"],
|
||||
"botName": "bot's IRC nick"
|
||||
//TODO: finish this
|
||||
"botName": "bot's IRC nick",
|
||||
"realName": "bot's IRC real name",
|
||||
"password": "Nickserv / SASL password"
|
||||
}
|
Loading…
Reference in New Issue