Add channel ids to startup log

This commit is contained in:
Christopher Cookman 2024-05-08 07:46:11 -06:00
parent ca9cd1a671
commit e93b08d835
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -226,7 +226,7 @@ xmpp.on("online", async (address) => {
// Join all channels
config.iem.channels.forEach((channel => {
console.log(`Joining ${channel.name}`)
console.log(`Joining ${channel.jid.split("@")[0]}:${channel.name}`)
xmpp.send(xml("presence", { to: `${channel.jid}/${channel.jid.split("@")[0]}` }));
}))