Changed vars. See #3
This commit is contained in:
parent
8eae3b335e
commit
e2fbd57e41
8
index.js
8
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("<!DOCTYPE html><html><head><title>Bot Online!</title><meta name='viewport' content='width=device-width, initial-scale=1.0'/></head><body><p>Bot Online!</p></body></html>"));
|
||||
app.listen(app_port, () => console.log(`Listening on ${app_port}!`));
|
||||
|
|
Reference in New Issue