Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Language: BD2
- Var: nm
- value: 0
- var: msg
- value: empty
- First Command
- Trigger: (prefix)afk (both for prefix and slash)
- Slash Option: message
- Type: Text
- Required: Yes
- $if[$isSlash==true]
- $if[$checkUserPerms[$botID;changenicknames]==true]
- $if[$authorID==$serverOwner]
- $nomention
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message[message]]
- $elseif[$authorID!=$serverOwner]
- $nomention
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message[message]]
- $changeUsernameWithID[$authorID;[AFK\] $username]
- $elseif[$checkUserPerms[$botID;changenicknames]==false]
- $nomention
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message[message]]
- $elseif[$isSlash==false]
- $if[$authorID==$serverOwner]
- $nomention
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
- $argsCheck[>1;Please type afk message]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message]
- $elseif[$authorID!=$serverOwner]
- $nomention
- $if[$checkUserPerms[$botID;changenicknames]==false]
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
- $argsCheck[>1;Please type afk message]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message]
- $elseif[$checkUserPerms[$botID;changenicknames]==true]
- $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
- $argsCheck[>1;Please type afk message]
- $title[zZz...┃your AFK is **`enabled`**]
- $color[#8dc9a2]
- $setUserVar[nm;1]
- $setUserVar[msg;$message]
- $suppressErrors
- $changeUsernameWithID[$authorID;[AFK\] $username]
- $endif
- $endif
- $endif
- $endif
- $endif
- Second Command
- Trigger: (prefix)qafk (both Prefix and Slash supported)
- Language: BD2
- $nomention
- $onlyIf[$getUserVar[nm]==1;You are not AFK!]
- $if[$checkUserPerms[$botID;changenicknames]==false]
- $if[$authorID==$serverOwner]
- $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
- $color[#e65a50]
- $setUserVar[nm;0]
- $else
- $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
- $color[#e65a50]
- $setUserVar[nm;0]
- $changeUsernameWithID[$authorID;%username%]
- $endif
- $else
- $if[$authorID==$serverOwner]
- $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
- $color[#e65a50]
- $setUserVar[nm;0]
- $else
- $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
- $color[#e65a50]
- $setUserVar[nm;0]
- $changeUsernameWithID[$authorID;%username%]
- $endif
- $endif
- Third command
- Trigger: <@
- $nomention
- person you tagged is AFK with reason:**`$getUserVar[msg;$mentioned[<]]`**
- $onlyIf[$getUserVar[nm;$mentioned[<]]==1;]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement