change over to use config file
This commit is contained in:
parent
95797b39ca
commit
d5c96bc236
11
bot.js
11
bot.js
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue