-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path-cp
21 lines (21 loc) · 1.49 KB
/
-cp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{if eq (len .Args) 4}}
{{/*塘规channel ID*/}}
{{$channelrule :=("<#598346479136145409>")}}
{{/*投诉区Chanel ID */}}
{{$channelcomplain :=("<#597141879313661963>")}}
{{$channel := (index .CmdArgs 0)}}
{{$who := (index .CmdArgs 1)}}
{{$msg:= (joinStr "" "您被投诉违反【" ($channelrule) "】第 " (index .CmdArgs 2) " 条,已经截图取证。您可以在【" ($channelcomplain) "】申诉。")}}
{{/*交流区channel ID*/}}
{{$publicChannel := 594770955784552461}}
{{$desc := (joinStr "" "Hi! " ($who) " 我们在" ($channel) "接到了对您投诉。 " "")}}
{{$footer := (sdict "text" (joinStr "" "投诉人:" (.User.Username) ))}}
{{$embed := cembed "title" "投诉提醒!" "description" ($desc) "color" 16763904 "footer" ($footer) "fields" (cslice (sdict "name" "投诉内容:" "value" ($msg))) "thumbnail" (sdict "url" "http://icons.iconarchive.com/icons/custom-icon-design/flatastic-9/256/Warning-icon.png") }}
{{sendMessage $publicChannel $embed}}
{{/*以上,发消息到交流区。以下,发消息到投诉区。*/}}
{{$msg2:=(joinStr "" "Hi! " (.User.Username) "。 您针对" ($who) "在【" ($channel) "】违反塘规 " (index .CmdArgs 2) " 条的投诉已记录。 请不要忘记提交截屏证据哦。")}}
{{$embedNil := cembed "title" "投诉记录:" "description" ($msg2) "color" 4325120}}
{{sendMessage nil $embedNil}}
{{else}}
命令格式 -cp <#channel-name> <@username> <投诉违反了塘规哪几条,写数字即可>
{{end}}