Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $c[CODE VERSION: 1.3.0 ]
- $var[color;ff0000]
- $var[maxwarns;4]
- $if[$checkUserPerms[$authorID;moderatemembers]==false]
- $sendEmbedMessage[$channelID;;Eksik izinler.;;Bu komutu kullanmak için "Denetimli Üyeler" iznine ihtiyacınız var.;$var[color];;;;;;;false;false]
- $stop
- $endif
- $if[$checkUserPerms[$botID;kick]==false]
- $sendEmbedMessage[$channelID;;Eksik izinler;;Bu komutu çalıştırmak için "Üyeleri Tekmele" iznine ihtiyacım var.;$var[color];;;;;;;false;false]
- $stop
- $endif
- $if[$findUser[$message[1];false]==]
- $sendEmbedMessage[$channelID;;Hedef eksik.;;Üye etiketleyin.;ff0000;;;;;;;false;false]
- $stop
- $endif
- $try
- $var[userId;$findUser[$message[1];false]]
- $var[reasonId;$toUppercase[$randomString[5]]]
- $var[reason;$trimSpace[$replaceText[$replaceText[$checkCondition[$message[2]==];false;$replaceText[$message;$message[1];]];true;Belirtilmedi.]]]
- $if[$var[userId]==$botID]==true]
- $color[ff0000]
- $description[<:carpi:1095350589967314994> You can't warn my **bot brother**!]
- $addButton[no;sil;Sil;style;;🗑️;]
- $stop
- $endif
- $endif
- $if[$var[userId]==$botOwnerID]==true]
- $color[ff0000]
- $description[<:carpi:1095350589967314994> **You cannot warn the Bot Owner**!]
- $stop
- $endif
- $if[$or[$var[userId]==$serverOwner;$checkUserPerms[$var[userId]admin]==true;$var[userId]==$authorID;$rolePosition[$highestRole[$var[userId]]]<$rolePosition[$highestRole[$authorID]]]]]
- $sendEmbedMessage[$channelID;;Hedefin yetkisi yüksek.;;Seçilen üye denetlenemez çünkü; Botun rolünden yüksekte **/** O sunucunun kurucusu **/** Üstünde yönetici yetkisi var.;ff0000;;;;;;;false;false]
- $stop
- $endif
- $jsonParse[$unescape[$getUserVar[WARNS;$var[userId]]]]
- $jsonSet[$var[reasonId];{"reason": "$var[reason]","date": "$date","moderator": "$authorID"}]
- $if[$jsonExists[main]]
- $textSplit[$json[main];,]
- $jsonSet[main;$joinSplitText[,],$var[reasonId]]
- $else
- $jsonSet[main;$var[reasonId]]
- $endif
- $jsonSet[count;$calculate[$json[count] + 1]]
- $var[audit;$replaceText[$var[reason]@BRKicked by: $username[$authorID] ($authorID)@BRDate: $date;@BR;
- ]]
- $if[$json[count]>=$var[maxwarns]]
- $sendEmbedMessage[$channelID;;Member kicked out.;;$username[$var[userId]] Kicked off the server because it reached 4 warnings;00ff00;;;;;;;false;false]
- $try
- $sendEmbedMessage[$dmChannelID[$var[userId]];;$serverName[$guildID] You have been kicked out of the server named.;;You have reached the maximum number of alerts.;ff0000;;;;;;;false;false]
- $endtry
- $resetUserVar[WARNS;$var[userId]]
- $kick[$var[userId];$var[audit]]
- $stop
- $endif
- $setUserVar[WARNS;$jsonStringify;$var[userId]]
- $title[<:tik:1087705195565289502> Member Warned!]
- $description[
- **Punishment ID:**
- ```$var[reasonId]```
- **Reason:**
- ```$var[reason]```
- **Official:**
- ```$username | $authorID```
- **Stimulated:**
- ```$username[$var[userId]] | $var[userId]```
- ]
- $footer[Uyarı Sayısı: $json[count]]
- $color[00ff00]
- $catch
- $sendEmbedMessage[$channelID;;Bir şeyler ters gitti.;;Sebep: `$error[message]`;$var[color];;;;;;;false;false]
- $endtry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement