-
Notifications
You must be signed in to change notification settings - Fork 3
/
invite.yaml
27 lines (27 loc) · 1.01 KB
/
invite.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: invite
rank: 2
priority: 5
event: on-message
if:
- if-any:
- message-contains-invite: true
- if-not:
- is-staff: true
- is-helper: true
do:
- delete-user-message:
- punish-user:
- send-mod-log: "User Muted for attempting to send an invite."
- notify-staff:
title: "Attempted invite"
content: "$user_mention tried to send an invite in $channel_mention - `$message_clean`"
thumbnail: $user_avatar_url
footer_text: "They Done Fucked Up"
ping: true
jump_to_ctx_message: true
qa_target: $user_id # Quick action target
qa_reason: "Attempted Everyone Ping" # Quick action reason, optional
no_repeat_for: 30 seconds # Ensures that this notif. won't be sent again in the next 30 secs
no_repeat_key: $rule_name-1 # An unique key that identifies this notif., make sure to set this too
- send-message: [$channel_id, "$user_mention | Please do not attempt to send discord invites."]
- delete-last-message-sent-after: 60 seconds