Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3889b8a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed Oct 28, 2024
1 parent 37db186 commit bac2e5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions rules/anatomy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ <h1>Anatomy of a Rule</h1>
# - @every 1m
# - @every 10s

# Respond to a reaction added or removed from a message in channel
reactions_added: "question" # the text name of the emoji used, can be a regexp with multiple like `(plusone|plus_one|plus1)`
reactions_removed: "question" # the text name of the emoji used, can be a regexp with multiple like `(plusone|plus_one|plus1)`

reaction: eyes # this will prompt the bot to add an emoji reaction to the message that triggered the rule. This emoji reaction can be modified later when actions are taken.

# actions
Expand Down Expand Up @@ -392,6 +396,8 @@ <h1>Anatomy of a Rule</h1>
</li>
<li><strong>hear</strong> (<em>string</em>) Choose a string to match or regex pattern that this rule should trigger actions for. Hear will match any occurrence of the pattern in the room regardless of whether the bot is addressed. Regex rules with <a href="https://pkg.go.dev/regexp/syntax#:%7E:text=named%20%26%20numbered%20capturing%20group">named capture groups</a> will be processed as arguments.</li>
<li><strong>schedule</strong> (<em>string</em>) <a href="https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format">Cronspec</a> for when you want a rule to run on a schedule.</li>
<li><strong>reaction_added</strong> (<em>string</em>) Choose a string to match or regex pattern that this rule should trigger actions for. Regex rules with <a href="https://pkg.go.dev/regexp/syntax#:%7E:text=named%20%26%20numbered%20capturing%20group">named capture groups</a> will be processed as arguments.</li>
<li><strong>reaction_removed</strong> (<em>string</em>) Choose a string to match or regex pattern that this rule should trigger actions for. Regex rules with <a href="https://pkg.go.dev/regexp/syntax#:%7E:text=named%20%26%20numbered%20capturing%20group">named capture groups</a> will be processed as arguments.</li>
<li><strong>reaction</strong> (<em>string</em>) Any time a rule is matched by the bot, it will add this reaction to the message that triggered the rule.
<ul>
<li>Slack: A string value of an <a href="https://www.webpagefx.com/tools/emoji-cheat-sheet/">emoji</a> reaction that exists in the server. For example, putting a value of <code>white_check_mark</code> would add the reaction of ✅.</li>
Expand Down
2 changes: 1 addition & 1 deletion search_index.en.js

Large diffs are not rendered by default.

0 comments on commit bac2e5c

Please sign in to comment.