Add support for priority messages. By default priority regex are saved in ~/.irssi/priority_messages

This commit is contained in:
Storm Dragon
2025-12-21 13:40:49 -05:00
parent 330c1bb2bc
commit d590e29b74
2 changed files with 100 additions and 0 deletions

7
README
View File

@@ -13,3 +13,10 @@ If you want to autorun the script, place the script in or simlink to ~/.irssi/sc
There is a basic install script, just run:
./install
This install script creates the folder ~/.irssi/scripts/autorun if it doesn't exist and simlinks the script to start automatically.
Priority alerts for public messages:
Create a file at ~/.irssi/priority_messages (one regex per line, # comments allowed).
Example pattern: ^\S+-\d+ is requesting assistance\.$
Matching public messages will use priority_sound_command instead of pub_sound_command.
Use /set priority_messages_file to change the file path if needed.
Reload the regex file with: /sound priority_reload