Advertisement
otfr

Account System Trigger

May 15th, 2024 (edited)
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.90 KB | Source Code | 0 0
  1. $nomention
  2. $if[$getVar[Acc;$authorID]=={}]
  3. $author[$username]
  4. $authorIcon[$authorAvatar]
  5. $color[2b2d31]
  6. $addField[Login/Register;You are not logged in. If you don't have an account make sure to register first]
  7. $addButton[no;acc.login+$authorID;Login;success]
  8. $addButton[no;acc.register+$authorID;Register;primary]
  9. $addButton[yes;acc.forgot.password+$authorID;Forgot Password;secondary]
  10. $addButton[no;delete+$authorID;Close;danger]
  11. $else
  12. $jsonParse[$getVar[Acc;$authorID]]
  13. $author[$username]
  14. $authorIcon[$authorAvatar]
  15. $color[2b2d31]
  16. $addField[Username;$json[Username]]
  17. $addField[Account ID;$json[AccID]]
  18. $addField[Creation Date;$replaceText[<t:$json[Date]:f>;";]]
  19. $addButton[no;acc.logout+$authorID;Logout;danger]
  20. $addButton[no;acc.change.password+$authorID;Change Password;secondary]
  21. $addButton[yes;acc.delete+$authorID;Delete Account;danger]
  22. $addButton[no;delete+$authorID;Close;danger]
  23. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement