Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $if[$isSlash==true] $defer $endif
- $onlyIf[$guildID!=;You can't use this in DMs!]
- $c[ Naturally everyone is able to use this command since it doesn't suppose any risk, but feel free to add an onlyAdmin, onlyPerms or anything you want below this line if you want to restrict it. ]
- $textSplit[$getServerVar[tickets2;$guildID];--]
- $enableDecimals[yes]
- $if[$isNumber[$splitText[2]]==true]
- $var[a;$splitText[1]]
- $var[b;$splitText[2]]
- $var[c;$splitText[3]]
- $var[d;$splitText[4]]
- $var[e;$splitText[5]]
- $else
- $var[a;0] $var[b;0] $var[c;0] $var[d;0] $var[e;0]
- $endif
- $var[sum;$sum[$var[a];$var[b];$var[c];$var[d];$var[e]]]
- $try $var[p_verybad;$round[$multi[$divide[$var[a];$var[sum]];100]]] $catch $var[p_verybad;0] $endtry
- $try $var[p_bad;$round[$multi[$divide[$var[b];$var[sum]];100]]] $catch $var[p_bad;0] $endtry
- $try $var[p_regular;$round[$multi[$divide[$var[c];$var[sum]];100]]] $catch $var[p_regular;0] $endtry
- $try $var[p_good;$round[$multi[$divide[$var[d];$var[sum]];100]]] $catch $var[p_good;0] $endtry
- $try $var[p_verygood;$round[$multi[$divide[$var[e];$var[sum]];100]]] $catch $var[p_verygood;0] $endtry
- $var[negative;:red_square:]
- $var[regular;:blue_square:]
- $var[positive;:green_square:]
- $var[white;:white_large_square:]
- $try $var[pl_verybad;$round[$multi[$divide[$var[a];$var[sum]];10]]] $catch $var[pl_verybad;0] $endtry
- $try $var[pl_bad;$round[$multi[$divide[$var[b];$var[sum]];10]]] $catch $var[pl_bad;0] $endtry
- $try $var[pl_regular;$round[$multi[$divide[$var[c];$var[sum]];10]]] $catch $var[pl_regular;0] $endtry
- $try $var[pl_good;$round[$multi[$divide[$var[d];$var[sum]];10]]] $catch $var[pl_good;0] $endtry
- $try $var[pl_verygood;$round[$multi[$divide[$var[e];$var[sum]];10]]] $catch $var[pl_verygood;0] $endtry
- $if[$sum[$var[a];$var[b]]>$sum[$var[d];$var[e]]]
- $color[#dd2e44]
- $else
- $color[#78b159]
- $endif
- $author[$serverName[$guildID]]
- $authorIcon[$serverIcon[$guildID]]
- $description[
- > **$numberSeparator[$getServerVar[tickets]]** tickets has been created on this server!
- > **$numberSeparator[$sum[$var[a];$var[b];$var[c];$var[d];$var[e]]]** total reviews! **$numberSeparator[$sum[$var[c];$var[d];$var[e]]]** positives, **$numberSeparator[$sum[$var[a];$var[b]]]** negatives!
- $addField[Very bad — $numberSeparator[$var[a]];$repeatMessage[$var[pl_verybad];$var[negative]]$repeatMessage[$sub[10;$var[pl_verybad]];$var[white]] **$var[p_verybad]%**;no]
- $addField[Bad — $numberSeparator[$var[b]];$repeatMessage[$var[pl_bad];$var[negative]]$repeatMessage[$sub[10;$var[pl_bad]];$var[white]] **$var[p_bad]%**;no]
- $addField[Regular — $numberSeparator[$var[c]];$repeatMessage[$var[pl_regular];$var[regular]]$repeatMessage[$sub[10;$var[pl_regular]];$var[white]] **$var[p_regular]%**;no]
- $addField[Good — $numberSeparator[$var[d]];$repeatMessage[$var[pl_good];$var[positive]]$repeatMessage[$sub[10;$var[pl_good]];$var[white]] **$var[p_good]%**;no]
- $addField[Very good — $numberSeparator[$var[e]];$repeatMessage[$var[pl_verygood];$var[positive]]$repeatMessage[$sub[10;$var[pl_verygood]];$var[white]] **$var[p_verygood]%**;no]
- ]
- $footer[Req by $username[$authorID]#$discriminator[$authorID]]
- $suppressErrors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement