Advertisement
Ayan143

AFK System

Jan 30th, 2025 (edited)
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. Language: BD2
  2. Var: nm
  3. value: 0
  4. var: msg
  5. value: empty
  6. First Command
  7. Trigger: (prefix)afk (both for prefix and slash)
  8. Slash Option: message
  9. Type: Text
  10. Required: Yes
  11.  
  12. $if[$isSlash==true]
  13. $if[$checkUserPerms[$botID;changenicknames]==true]
  14. $if[$authorID==$serverOwner]
  15. $nomention
  16. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
  17. $title[zZz...┃your AFK is **`enabled`**]
  18. $color[#8dc9a2]
  19. $setUserVar[nm;1]
  20. $setUserVar[msg;$message[message]]
  21. $elseif[$authorID!=$serverOwner]
  22. $nomention
  23. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
  24. $title[zZz...┃your AFK is **`enabled`**]
  25. $color[#8dc9a2]
  26. $setUserVar[nm;1]
  27. $setUserVar[msg;$message[message]]
  28. $changeUsernameWithID[$authorID;[AFK\] $username]
  29. $elseif[$checkUserPerms[$botID;changenicknames]==false]
  30. $nomention
  31. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type /qafk]
  32. $title[zZz...┃your AFK is **`enabled`**]
  33. $color[#8dc9a2]
  34. $setUserVar[nm;1]
  35. $setUserVar[msg;$message[message]]
  36. $elseif[$isSlash==false]
  37. $if[$authorID==$serverOwner]
  38. $nomention
  39. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
  40. $argsCheck[>1;Please type afk message]
  41. $title[zZz...┃your AFK is **`enabled`**]
  42. $color[#8dc9a2]
  43. $setUserVar[nm;1]
  44. $setUserVar[msg;$message]
  45. $elseif[$authorID!=$serverOwner]
  46. $nomention
  47. $if[$checkUserPerms[$botID;changenicknames]==false]
  48. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
  49. $argsCheck[>1;Please type afk message]
  50. $title[zZz...┃your AFK is **`enabled`**]
  51. $color[#8dc9a2]
  52. $setUserVar[nm;1]
  53. $setUserVar[msg;$message]
  54. $elseif[$checkUserPerms[$botID;changenicknames]==true]
  55. $onlyIf[$getUserVar[nm]==0;You already enabled afk, to disable it type :qafk]
  56. $argsCheck[>1;Please type afk message]
  57. $title[zZz...┃your AFK is **`enabled`**]
  58. $color[#8dc9a2]
  59. $setUserVar[nm;1]
  60. $setUserVar[msg;$message]
  61. $suppressErrors
  62. $changeUsernameWithID[$authorID;[AFK\] $username]
  63. $endif
  64. $endif
  65. $endif
  66. $endif
  67. $endif
  68.  
  69. Second Command
  70. Trigger: (prefix)qafk (both Prefix and Slash supported)
  71. Language: BD2
  72.  
  73. $nomention
  74. $onlyIf[$getUserVar[nm]==1;You are not AFK!]
  75. $if[$checkUserPerms[$botID;changenicknames]==false]
  76. $if[$authorID==$serverOwner]
  77. $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
  78. $color[#e65a50]
  79. $setUserVar[nm;0]
  80. $else
  81. $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
  82. $color[#e65a50]
  83. $setUserVar[nm;0]
  84. $changeUsernameWithID[$authorID;%username%]
  85. $endif
  86. $else
  87. $if[$authorID==$serverOwner]
  88. $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
  89. $color[#e65a50]
  90. $setUserVar[nm;0]
  91. $else
  92. $title[Welcome back (◍•ᴗ•◍)! Now your AFK is **`disabled`**]
  93. $color[#e65a50]
  94. $setUserVar[nm;0]
  95. $changeUsernameWithID[$authorID;%username%]
  96. $endif
  97. $endif
  98.  
  99. Third command
  100. Trigger: <@
  101.  
  102. $nomention
  103. person you tagged is AFK with reason:**`$getUserVar[msg;$mentioned[<]]`**
  104. $onlyIf[$getUserVar[nm;$mentioned[<]]==1;]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement