diff --git a/index.js b/index.js index c3e9a84..8c5a00d 100644 --- a/index.js +++ b/index.js @@ -65,8 +65,8 @@ var M = new mastodon({ timeout_ms: 60*1000, api_url: `${mastodon_url}`, }); -var iclient = new irc.Client('${irc_server}', '${irc_nick}', { - channels: ['${irc_channel}'], +var iclient = new irc.Client(irc_server, irc_nick, { + channels: [irc_channel], }); // Once we're online, we'll send a message alerting admins @@ -74,8 +74,8 @@ xmpp.on('online', function(data, to) { console.log('Connected with JID: ' + data.jid.user); xmpp.send(user_jid, "[ONLINE]", false); client.publish(mqtt_topic, mqtt_message); - iclient.join('${irc_channel}'); - iclient.say('${irc_channel}', '[ONLINE]'); + iclient.join(irc_channel); + iclient.say(irc_channel, '[ONLINE]'); M.post('statuses', { status: `${mastodon_toot}` }); app.get('/', (req, res) => res.send("Bot Online!

Bot Online!

")); app.listen(app_port, () => console.log(`Listening on ${app_port}!`));