-
Notifications
You must be signed in to change notification settings - Fork 66
/
reaction.yag
28 lines (26 loc) · 1.55 KB
/
reaction.yag
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
28
{{/*
Trigger Type: Reaction (add)
Made by @blackwolfwoof
*/}}
{{if and (inFold (cslice "1️⃣" "2️⃣" "3️⃣" "4️⃣" "5️⃣" "6️⃣" "7️⃣" "8️⃣" "9️⃣" ) .Reaction.Emoji.Name) (eq .Message.Author.ID $.BotUser.ID)}}
{{if eq .Reaction.Emoji.Name "1️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "1️⃣ Autohelp" "description" "Example 1")}}
{{else if eq .Reaction.Emoji.Name "2️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "2️⃣ Autohelp" "description" "Example 2")}}
{{else if eq .Reaction.Emoji.Name "3️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "3️⃣ Autohelp" "description" "Example 3")}}
{{else if eq .Reaction.Emoji.Name "4️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "4️⃣ Autohelp" "description" "Example 4")}}
{{else if eq .Reaction.Emoji.Name "5️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "5️⃣ Autohelp" "description" "Example 5")}}
{{else if eq .Reaction.Emoji.Name "6️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "6️⃣ Autohelp" "description" "Example 6")}}
{{else if eq .Reaction.Emoji.Name "7️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "7️⃣ Autohelp" "description" "Example 7")}}
{{else if eq .Reaction.Emoji.Name "8️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "8️⃣ Autohelp" "description" "Example 8")}}
{{else if eq .Reaction.Emoji.Name "9️⃣"}}
{{sendDM (cembed "color" 0xEBBF0E "title" "9️⃣ Autohelp" "description" "Example 9")}}
{{end}}
{{deleteMessageReaction nil .Reaction.MessageID .Reaction.UserID .Reaction.Emoji.Name}}
{{end}}