-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathreaction.yag
42 lines (40 loc) · 1.32 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{/*
Trigger Type: Reaction (add)
Copyright (c): Black Wolf, 2021
License: MIT
Repository: https://github.com/BlackWolfWoof/yagpdb-cc/
*/}}
{{$cid := .Reaction.ChannelID}}{{$mid := .Reaction.MessageID}}{{$en := .Reaction.Emoji.Name}}
{{if eq .Message.Author.ID $.BotUser.ID}}
{{if (eq $en "❤️")}}
{{editMessage $cid $mid (cembed
"title" "❤️ Example1"
"description" "This some text you can change"
"color" 0xde2e43)}}
{{deleteAllMessageReactions $cid $mid}}
{{addMessageReactions $cid $mid "❌"}}
{{else if (eq $en "💡")}}
{{editMessage $cid $mid (cembed
"title" "💡 Example2"
"description" "Idk what to type here so i typed this"
"color" 0xffd984)}}
{{deleteAllMessageReactions $cid $mid}}
{{addMessageReactions $cid $mid "❌"}}
{{else if (eq $en "🛡️")}}
{{editMessage $cid $mid (cembed
"title" "🛡️ Example3"
"description" "Chill and Play is a good server #selfpromo 😝"
"color" 0x55acef)}}
{{deleteAllMessageReactions $cid $mid}}
{{addMessageReactions $cid $mid "❌"}}
{{else if (eq $en "❌")}}
{{editMessage $cid $mid (cembed
"title" "This is an example page"
"description" `❤️ Example1
💡 Example2
🛡️ Example3`
"color" 0xe67e22)}}
{{deleteAllMessageReactions $cid $mid}}
{{addMessageReactions $cid $mid "❤️" "💡" "🛡️"}}
{{end}}
{{end}}