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 irc = require("irc-upd");
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
@ -35,6 +36,7 @@ bot.addListener("pm", function(from, message) {
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.addListener("message", (nick, to, text, message) => {
|
bot.addListener("message", (nick, to, text, message) => {
|
||||||
|
console.log(to);
|
||||||
if(!text.startsWith("*")) {
|
if(!text.startsWith("*")) {
|
||||||
console.log("Not for me!");
|
console.log("Not for me!");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"owner": "IRC Username of the bot's owner",
|
"owner": "IRC Username of the bot's owner",
|
||||||
"apiKey": "OpenCage API Key https://opencagedata.com",
|
"apiKey": "OpenCage API Key https://opencagedata.com",
|
||||||
"channels": ["array", "of", "channels", "to", "join"],
|
"channels": ["array", "of", "channels", "to", "join"],
|
||||||
"botName": "bot's IRC nick"
|
"botName": "bot's IRC nick",
|
||||||
//TODO: finish this
|
"realName": "bot's IRC real name",
|
||||||
|
"password": "Nickserv / SASL password"
|
||||||
}
|
}
|
Loading…
Reference in New Issue