From 95797b39cad048789c9bb76c0261832ac87d9a75 Mon Sep 17 00:00:00 2001 From: Robert Drake Date: Tue, 3 Nov 2020 01:17:00 -0600 Subject: [PATCH] start of work commit --- bot.js | 2 ++ config/config.example.json | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 0719e7c..ecfe3c8 100644 --- a/bot.js +++ b/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; diff --git a/config/config.example.json b/config/config.example.json index 95479f5..7c5d679 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -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" } \ No newline at end of file