A modern, feature-rich WebSocket IRC client for WordPress. Connect your website visitors to your IRC server with real-time chat, private messaging, desktop notifications, and a beautiful tabbed interface.
Navigate to Settings Badwolf Web IRC Client and configure:
wss://irc.example.com:7443)#general)guest)Your UnrealIRCd server must have WebSocket support enabled:
`conf
Load WebSocket module
loadmodule “websocket”;
Configure WebSocket listener
listen {
ip *;
port 7443;
options {
tls;
websocket;
}
tls-options {
certificate “/path/to/fullchain.pem”;
key “/path/to/privkey.pem”;
options {
no-client-certificate;
}
}
}
`
`bash
Install certbot if not already installed
sudo apt-get install certbot
Get certificate for your IRC domain
sudo certbot certonly –standalone -d irc.yourdomain.com
Copy certificates to UnrealIRCd
sudo cp /etc/letsencrypt/live/irc.yourdomain.com/fullchain.pem /path/to/unrealircd/conf/tls/
sudo cp /etc/letsencrypt/live/irc.yourdomain.com/privkey.pem /path/to/unrealircd/conf/tls/
Set correct permissions
sudo chown unrealircd:unrealircd /path/to/unrealircd/conf/tls/*.pem
sudo chmod 600 /path/to/unrealircd/conf/tls/privkey.pem
sudo chmod 644 /path/to/unrealircd/conf/tls/fullchain.pem
Restart UnrealIRCd
cd /path/to/unrealircd
./unrealircd restart
`
Create a renewal hook to automatically copy certificates:
`bash
Create renewal hook script
sudo nano /etc/letsencrypt/renewal-hooks/deploy/copy-to-unrealircd.sh
`
Add this content:
`bash
!/bin/bash
cp /etc/letsencrypt/live/irc.yourdomain.com/fullchain.pem /path/to/unrealircd/conf/tls/
cp /etc/letsencrypt/live/irc.yourdomain.com/privkey.pem /path/to/unrealircd/conf/tls/
chown unrealircd:unrealircd /path/to/unrealircd/conf/tls/*.pem
chmod 600 /path/to/unrealircd/conf/tls/privkey.pem
chmod 644 /path/to/unrealircd/conf/tls/fullchain.pem
/path/to/unrealircd/unrealircd rehash
`
Make it executable:
`bash
sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/copy-to-unrealircd.sh
`
`
[web_irc_client]
`
`
[web_irc_client theme=”dark” width=”100%” height=”600px”]
`
Available attributes:
theme – Override theme (light or dark)width – Set custom width (default: 100%)height – Set custom height (default: 70vh)Users can use standard IRC commands:
/nick newname – Change nickname/join #channel – Join a channel/part – Leave current channel/msg username message – Send private message/me action – Send action message/help – Show available commandsProblem: “Reconnecting…” message appears
Solutions:
ps aux | grep unrealircdsudo netstat -tlnp | grep 7443tail -f /path/to/unrealircd/logs/ircd.logProblem: Certificate expired or invalid
Solution:
`bash
Check certificate expiry
sudo certbot certificates
Renew if needed
sudo certbot renew –force-renewal
Copy to UnrealIRCd and restart
sudo cp /etc/letsencrypt/live/irc.yourdomain.com/*.pem /path/to/unrealircd/conf/tls/
./unrealircd restart
`
Problem: IRC client doesn’t appear on page
Solutions:
[web_irc_client]Problem: Plugin stopped working after WordPress 6.9 update
Solution: Update to version 5.2.0 which includes WordPress 6.9 compatibility fixes.