aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-28 02:22:49 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-28 02:22:49 -0400
commitb7a2bc13f61a60c99ce460d08d7c89d06ee72a34 (patch)
tree72d2927c61ee8daabd9eba50eac95e681190e1c3 /README.md
parent852777345060b09ab34945cff65a095aa8cb1aa9 (diff)
downloadSkyblockMod-b7a2bc13f61a60c99ce460d08d7c89d06ee72a34.tar.gz
SkyblockMod-b7a2bc13f61a60c99ce460d08d7c89d06ee72a34.tar.bz2
SkyblockMod-b7a2bc13f61a60c99ce460d08d7c89d06ee72a34.zip
Add regex for alerts
Capture support using $$x$$ where x is a group number Make util function for desktop notifications
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 30fec71..55fb29f 100644
--- a/README.md
+++ b/README.md
@@ -134,6 +134,20 @@ By adding numbers to the end of the file, you can have multiple music files for
- dungeon2.wav
- dungeon99.wav
+## Alert Regex
+To replace alert text with a captured group, add `$$x$$` to the alert text, with `x` being the number of the capture group. `$$0$$` will always be replaced with the entire trigger message.
+
+For example, with the following alert
+
+Regex: `From (.*) (.*): (.*)`
+Alert Text: `$$2$$ says $$3$$`
+Trigger Message: `From [ADMIN] Plancke: Nice autogg`
+
+the following alert text would appear
+
+`Plancke says Nice autogg`.
+
+
### Notes
- Slayer tracker for token drops and 20% chance drops uses a 12x12x12 bounding box centered on the player to detect the drops. If you are out of the range of the item drop, it will not count on the tracker.
- API commands may take a while depending on your internet connection. The API may also go down.