Tutorials_for_BDFD

AFK system en

Oct 5th, 2022
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Variablen :
  2.  
  3. afk = false
  4.  
  5. afk-timestamp =
  6.  
  7. afk-users =
  8.  
  9.  
  10.  
  11. ____Code 1____
  12. Script : Bdscript 2
  13. Trigger : !afk
  14.  
  15. $nomention
  16. $title[<:afk1:1026895549858852996>〣│__AFK__]
  17. $description[$username is now Afk,
  18.  
  19. Reason `$if$message== no Reason settet $else $message $endif]
  20. $color[c41818]
  21. $footer[by $username#$discriminator[]]
  22. $footerIcon[$authorAvatar]
  23. $await[afk;]
  24. §setServerVar[afk-users;$getServerVar[afk-users], $authorID
  25. $setUserVar[afk;true]
  26. $setUserVar[afk-timestamp;$getTimestamp]
  27. $c[Please remove the custom emoji above]
  28.  
  29.  
  30. ____Code 2____
  31. Trigger : $awaitedCommand[afk;]
  32.  
  33. $nomention
  34. $title[User is back]
  35. $description[$username, we are happy to have you back again. You was Afk for : <t:$getUserVar[afk-timestamp]:R>]
  36. $footer[Welcome back]
  37. $footerIcon[$authorAvatar]
  38. $color[c41818]
  39.  
  40. $C[This Restes the varliablen]
  41.  
  42. $setUserVar[afk;false]
  43. $setUserVar[afk-timestamp;]
  44. $setServerVar[afk-users;$replaceText[$getServerVar[afk-users],$authorID;;-1]]
  45.  
  46.  
  47.  
  48. ____Code 3____
  49. Trigger : <@
  50.  
  51. $nomention
  52. $if[$checkContains[$getServerVar[afk-users];$mentioned[1]]==true]
  53. $description[dear $username,
  54. The person you mentioned is afk.]
  55. $color[c41818]
  56. $endif
Advertisement
Add Comment
Please, Sign In to add comment