rajat_cj

BDFD โ€ข Userinfo

Jun 11th, 2022 (edited)
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.23 KB | None | 0 0
  1. Userinfo and Name Log
  2. - Code by Rajat#1004
  3.  
  4.  
  5.  
  6. Variable 1
  7. --------------------------------------------------------------------------------
  8. Name : oldusernames
  9. Value :
  10.  
  11.  
  12.  
  13. Variable 2
  14. --------------------------------------------------------------------------------
  15. Name : oldnicknames
  16. Value :
  17.  
  18.  
  19.  
  20. Code 1
  21. --------------------------------------------------------------------------------
  22. Trigger : ?userinfo
  23. Language : BDScript 2
  24. Code :
  25.  
  26.  
  27.  
  28. $nomention
  29. $removeButtons
  30. $botTyping
  31. $var[user;$findUser[$message;yes]]
  32. $author[Userinfo โ€ข $nickname[$var[user]]]
  33. $authorIcon[$userAvatar[$var[user]]]
  34. $footer[Requested by $nickname]
  35. $footerIcon[$authorAvatar]
  36. $color[$getRoleColor[$highestRole[$findUser[$message;yes]]]]
  37. $try
  38. $textSplit[$date-$userJoinedDiscord[$var[user]]-$userJoined[$var[user]]-$creationDate[$guildID];-]
  39. $httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$userJoined[$var[user];2006/01/02+15:04:05]]
  40. $description[
  41. ๐Ÿ’ฎ **$username[$var[user]]#__$discriminator[$var[user]]__**
  42. > **$replaceText[$replaceText[$isBot[$var[user]];true;๐Ÿค– BOT;1];false;๐Ÿ˜‡ Human;1]**,** $replaceText[$replaceText[$isUserDMEnabled[$var[user]];false;๐Ÿ“ช DM Disabled;1];true;๐Ÿ’Œ DM Enabled;1]**, **$replaceText[$replaceText[$replaceText[$replaceText[$getUserStatus[$var[user]];online;<:online:863620297530015794> Online;1];dnd;<:dndisturb:863621030711001108> DND;1];idle;<:idle:863620514953560084> Idle;1];offline;<:offline:863620353771438091> Offline;1]**
  43. ๐Ÿ“… **[Dates :\](https://www.google.com/search?q=dates)**
  44. > **`Account Age :` __$sub[$sum[$multi[$splitText[1];365];$multi[$splitText[2];30];$splitText[3]];$sum[$multi[$splitText[4];365];$multi[$splitText[5];30];$splitText[6]]] days__** (<t:$calculate[($var[user] / 4194304 + 1420070400000) / 1000]:D>)
  45. > **`Server Age :` __$sub[$sum[$multi[$splitText[1];365];$multi[$splitText[2];30];$splitText[3]];$sum[$multi[$splitText[10];365];$multi[$splitText[11];30];$splitText[12]]] days__** (<t:$calculate[($guildID / 4194304 + 1420070400000) / 1000]:D>)
  46. > **`Server Joined :` __$sub[$sum[$multi[$splitText[1];365];$multi[$splitText[2];30];$splitText[3]];$sum[$multi[$splitText[7];365];$multi[$splitText[8];30];$splitText[9]]] days__** (<t:$httpResult[UnixTimeStamp]:D>)
  47. ๐Ÿ’ฅ **[Perms :\](https://www.google.com/search?q=perms)**
  48. > $replaceText[$replaceText[$checkUserPerms[$var[user];admin];true;โ›”** Server Administrator**;1];false;$replaceText[$replaceText[$checkUserPerms[$var[user];ban];true;โ›” Ban;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];kick];true;๐Ÿ›ก๏ธ Kick;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];manageserver];true;โš™๏ธ Manage server;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];managechannels];true;๐Ÿ› ๏ธ Manage Channels;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];manageroles];true;๐Ÿ“‘ Manage Roles;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];managemessages];true;๐Ÿ“ Manage Messages;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];managenicknames];true;๐Ÿ”– Manage Nicknames;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];manageemojis];true;๐Ÿ˜€ Manage Emotes;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];mentioneveryone];true;๐Ÿ†” Ping *@*everyone,*@*here & Roles;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$var[user];changenicknames];true;๐Ÿท๏ธ Change Nicknames;1];false;;1];1]
  49. ๐Ÿง‘โ€๐Ÿ’ผ **[Roles :\](https://www.google.com/search?q=roles)**
  50. > **Highest Role :** <@&$highestRole[$var[user]]>
  51. > $replaceText[$replaceText[$eval[$replaceText[<@&ยฅfindRole[$replaceText[$userRoles[$var[user]];
  52. ;\]> <@&ยฅfindRole[;-1]\];ยฅ;$;-1]\]]; <@&$highestRole[$var[user]]>;;1]; <@&\];;1]
  53. ๐Ÿ”– **[Usernames :\](https://www.google.com/search?q=usernames&oq=username)**
  54. > $cropText[$getVar[oldusernames;$var[user]];200;...]
  55. ๐Ÿท๏ธ **[Nicknames :\](https://www.google.com/search?q=nicknames)**
  56. > $cropText[$getUserVar[oldnicknames;$var[user]];200;...]
  57. ]
  58. $catch
  59. $textSplit[$date-$userJoinedDiscord[$var[user]]-0-0-0-$creationDate[$guildID];-]
  60. $description[
  61. ๐Ÿ’ฎ **$username[$var[user]]#__$discriminator[$var[user]]__**
  62. > **$replaceText[$replaceText[$isBot[$var[user]];true;๐Ÿค– BOT;1];false;๐Ÿ˜‡ Human;1]**,** $replaceText[$replaceText[$isUserDMEnabled[$var[user]];false;๐Ÿ“ช DM Disabled;1];true;๐Ÿ’Œ DM Enabled;1]**, **$replaceText[$replaceText[$replaceText[$replaceText[$getUserStatus[$var[user]];online;<:online:863620297530015794> Online;1];dnd;<:dndisturb:863621030711001108> DND;1];idle;<:idle:863620514953560084> Idle;1];offline;<:offline:863620353771438091> Offline;1]**
  63. ๐Ÿ“… **[Dates :\](https://www.google.com/search?q=dates)**
  64. > **`Account Age :` __$sub[$sum[$multi[$splitText[1];365];$multi[$splitText[2];30];$splitText[3]];$sum[$multi[$splitText[4];365];$multi[$splitText[5];30];$splitText[6]]] days__** (<t:$calculate[($var[user] / 4194304 + 1420070400000) / 1000]:D>)
  65. > **`Server Age :` __$sub[$sum[$multi[$splitText[1];365];$multi[$splitText[2];30];$splitText[3]];$sum[$multi[$splitText[10];365];$multi[$splitText[11];30];$splitText[12]]] days__** (<t:$calculate[($guildID / 4194304 + 1420070400000) / 1000]:D>)
  66. > **`Server Joined :` __Unknown days ago__**
  67. ๐Ÿ’ฅ **[Perms :\](https://www.google.com/search?q=perms)**
  68. > $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];admin];true;โ›”** Server Administrator**;1];false;$replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];ban];true;โ›” Ban;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];kick];true;๐Ÿ›ก๏ธ Kick;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];manageserver];true;โš™๏ธ Manage server;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];managechannels];true;๐Ÿ› ๏ธ Manage Channels;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];manageroles];true;๐Ÿ“‘ Manage Roles;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];managemessages];true;๐Ÿ“ Manage Messages;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];managenicknames];true;๐Ÿ”– Manage Nicknames;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];manageemojis];true;๐Ÿ˜€ Manage Emotes;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];mentioneveryone];true;๐Ÿ†” Ping *@*everyone,*@*here & Roles;1];false;;1] $replaceText[$replaceText[$checkUserPerms[$findUser[$message;yes];changenicknames];true;๐Ÿท๏ธ Change Nicknames;1];false;;1];1]
  69. ๐Ÿง‘โ€๐Ÿ’ผ **[Roles :\](https://www.google.com/search?q=roles)**
  70. > **Highest Role :** <@&$highestRole[$var[user]]>
  71. ๐Ÿ”– **[Usernames :\](https://www.google.com/search?q=usernames)**
  72. > $cropText[$getVar[oldusernames;$var[user]];200;...]
  73. ๐Ÿท๏ธ **[Nicknames :\](https://www.google.com/search?q=nicknames)**
  74. > $cropText[$getUserVar[oldnicknames;$var[user]];200;...]
  75. ]
  76. $endtry
  77.  
  78.  
  79.  
  80.  
  81.  
  82. Code 2
  83. --------------------------------------------------------------------------------
  84. Trigger : < [MUST BE "<" OR "$alwaysReply" ONLY]
  85. Language : BDScript 2
  86. Code :
  87.  
  88.  
  89. $c[name update]
  90. $async[useraut]
  91. $try
  92. $if[$checkContains[$getVar[oldusernames;$authorID];$username]==false]
  93. $setVar[oldusernames;$cropText[$username, $getVar[oldusernames;$authorID];495;...];$authorID]
  94. $endif
  95. $endtry
  96. $endasync
  97.  
  98. $async[nickaut]
  99. $try
  100. $if[$checkContains[$getUserVar[oldnicknames;$authorID];$nickname]$checkCondition[$username!=$nickname]==falsetrue]
  101. $setUserVar[oldnicknames;$cropText[$nickname, $getUserVar[oldnicknames;$authorID];495;...];$authorID]
  102. $endif
  103. $endtry
  104. $endasync
  105.  
  106. $async[usermen]
  107. $try
  108. $if[$checkContains[$getVar[oldusernames;$mentioned[1;yes]];$username[$mentioned[1;yes]]]==false]
  109. $setVar[oldusernames;$cropText[$username[$mentioned[1;yes]], $getVar[oldusernames;$mentioned[1;yes]];495;...];$mentioned[1;yes]]
  110. $endif
  111. $endtry
  112. $endasync
  113.  
  114. $async[nickmen]
  115. $try
  116. $if[$checkContains[$getUserVar[oldnicknames;$mentioned[1;yes]];$nickname[$mentioned[1;yes]]]$checkCondition[$username[$mentioned[1;yes]]!=$nickname[$mentioned[1;yes]]]==falsetrue]
  117. $setUserVar[oldnicknames;$cropText[$nickname[$mentioned[1;yes]], $getUserVar[oldnicknames;$mentioned[1;yes]];495;...];$mentioned[1;yes]]
  118. $endif
  119. $endtry
  120. $endasync
  121.  
Advertisement
Add Comment
Please, Sign In to add comment