change over to use config file

This commit is contained in:
Robert Drake 2020-11-03 01:44:46 -06:00
parent 95797b39ca
commit d5c96bc236
1 changed files with 6 additions and 5 deletions

11
bot.js
View File

@ -1,17 +1,18 @@
const config = require("./config/config.json");
const irc = require("irc-upd");
const geocode = require("node-geocoder");
const options = {
userName: "robweatherbot",
realName: "Rob's Weather Bot",
password: "6uldv8",
userName: config.botName,
realName: config.realName,
password: config.password,
port: 6697,
secure: true,
selfSigned: true,
channels: ["#theasylum"]
channels: config.channels
};
const owner = "robdrake";
const owner = config.owner;
let bot = new irc.Client("irc.tilde.chat", "robweatherbot", options);