-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathfakeban.yag
29 lines (26 loc) · 1.02 KB
/
fakeban.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
{{/*
Trigger: fakeban
Trigger Type: Command
Usage:
fakeban ID/Mention
fakeban ID/Mention Reason
Copyright (c): Black Wolf, 2021
License: MIT
Repository: https://github.com/BlackWolfWoof/yagpdb-cc/
*/}}
{{$prefix := index (reFindAllSubmatches `Prefix of \x60\d+\x60: \x60(.+)\x60` (exec "prefix")) 0 1}}
{{$args := parseArgs 1 (print $prefix "fakeban <Mention/ID> <Reason (optional)>")
(carg "userid" "user")
(carg "string" "reason")}}
{{$user := userArg ($args.Get 0)}}
{{sendMessage nil (cembed
"description" (print "🔨 **Banned " $user.Username "**#" $user.Discriminator " *(ID " $user.ID ")*" "\n📄**Reason:** " (or ($args.Get 1) "Banned by Admin") " ([Logs](https://www.youtube.com/watch?v=dQw4w9WgXcQ))")
"color" 14043208
"author" (sdict
"name" (print .User.String " (ID " .User.ID ")")
"icon_url" (.User.AvatarURL "4096"))
"footer" (sdict
"text" "Expires after: 420 weeks")
"thumbnail" (sdict "url" ($user.AvatarURL "4096")))}}
🔨 Banned `{{$user.String}}` for `8 years and 2 weeks`
{{deleteTrigger 0}}