thelounge-plugin-highlightmon
v1.0.0
Published
A plugin for TheLounge that creates a highlight monitor to stream all highlighted messages in real-time
Maintainers
Readme
thelounge-plugin-highlightmon
A plugin for TheLounge that creates a highlight monitor to stream all highlighted messages in real-time.
Features
- Real-time highlight monitoring: Creates a
highlightmonlocal buffer that displays all messages that would trigger highlights - Channel prefixes: Each message is prefixed with the originating channel name for easy identification
- Toggle control: Use
/highlightmoncommand to enable/disable monitoring - Smart highlight detection: Uses TheLounge's built-in highlight settings (keywords and nick mentions)
- Exception support: Respects TheLounge's highlight exceptions to avoid false positives
- Action support: Monitors both regular messages and IRC actions that contain highlights
- Per-network: Each IRC network gets its own highlightmon buffer
- Command-based: Use
/highlightmonto create and toggle monitoring
Installation
Via npm (when published)
thelounge install thelounge-plugin-highlightmonManual installation (current method)
Clone this repository:
git clone https://github.com/jjasghar/thelounge-plugin-highlightmon.gitInstall in your TheLounge packages directory:
cd ~/.thelounge/packages npm install file:path/to/thelounge-plugin-highlightmonRestart TheLounge:
thelounge restartThe plugin will be loaded automatically and ready to use with
/highlightmon
Usage
Basic Usage
Once installed, use the /highlightmon command to:
- Create a
highlightmonlocal buffer on the current IRC network - Toggle monitoring of highlighted messages in real-time
- Display messages in the format:
[#channel] <nick> message - Mark messages as highlighted so they appear with highlight styling
Commands
/highlightmon- Toggle highlight monitoring on/off for the current network
Example Output
[#thelounge] <alice> jjasghar: how's the new project going?
[#development] <bob> The urgent bug needs attention from jjasghar
[#general] <charlie> @jjasghar the deployment is ready for review
[#random] <dave> kubernetes cluster is down - need help!Note: Only messages containing your nickname or configured highlight keywords will appear, unlike chanmon which shows all messages.
Highlight Detection
The plugin uses TheLounge's built-in highlight system and will monitor messages that contain:
Automatic Highlights
- Your nickname: Any mention of your current IRC nickname
- Configured keywords: Keywords you've set in TheLounge's highlight settings
Highlight Settings
You can configure highlights in TheLounge's settings:
- Go to Settings → Highlights
- Add keywords you want to monitor
- Add exceptions for words that should not trigger highlights
- The plugin will automatically use these settings
What gets monitored
Monitored:
- Regular channel messages containing highlights
- IRC actions (
/mecommands) containing highlights - Messages matching your configured highlight keywords
- Messages mentioning your nickname
Not monitored:
- Join/part/quit messages
- Nick changes
- Mode changes
- Topic changes
- Messages from the
highlightmonbuffer itself (prevents loops) - Private messages (use TheLounge's built-in highlight system for PMs)
- Messages matching highlight exceptions
Configuration
The plugin works out of the box with no additional configuration required. It will:
- Create the
highlightmonbuffer when you run/highlightmon - Use your existing TheLounge highlight settings
- Start streaming highlighted messages when enabled
Compatibility
- TheLounge version: 4.0.0 or higher
- Node.js version: 14.0.0 or higher
How it differs from chanmon
While thelounge-plugin-chanmon shows ALL channel activity, highlightmon is laser-focused and only shows:
- Highlight-triggered messages only: Messages that would normally trigger TheLounge's highlight notifications
- Nickname mentions: Any message containing your current IRC nickname
- Custom keywords: Messages containing keywords you've configured in TheLounge's highlight settings
- Noise reduction: Dramatically reduces message volume compared to chanmon
- Smart filtering: Respects your highlight exceptions to avoid false positives
This makes it perfect for monitoring important mentions across multiple busy channels without getting overwhelmed by general chatter.
Real-world example:
- chanmon: Shows 500+ messages per hour from all channels
- highlightmon: Shows only the 5-10 messages that actually mention you or your keywords
Development
To contribute to this plugin:
- Fork the repository
- Make your changes
- Test with a local TheLounge installation
- Submit a pull request
Testing
- Install the plugin in your TheLounge installation
- Connect to an IRC network
- Run
/highlightmonin any channel to create the buffer and enable monitoring - Configure highlight keywords in Settings → Highlights (optional)
- Test highlight detection:
- Have someone mention your nickname:
yournick: hello there - Use a configured keyword in a message
- Check that messages appear in the
highlightmonbuffer
- Have someone mention your nickname:
- Run
/highlightmonagain to toggle monitoring off/on - Verify the plugin works alongside other plugins like chanmon
Verified Working On
- ✅ TheLounge v4.4.3
- ✅ Node.js 23.11.0
- ✅ macOS (darwin arm64)
- ✅ Works alongside thelounge-plugin-chanmon
License
MIT License - see LICENSE file for details.
Support
If you encounter any issues or have feature requests, please open an issue on the GitHub repository.
Related Plugins
- thelounge-plugin-chanmon - Monitor all channel activity
- thelounge-plugin-closepms - Close all open PMs on a network
- thelounge-plugin-autodownload - Autodownload torrents in qBittorrent
