Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Userinfo and Name Log
- - Code by Rajat#1004
- Variable 1
- --------------------------------------------------------------------------------
- Name : oldusernames
- Value :
- Variable 2
- --------------------------------------------------------------------------------
- Name : oldnicknames
- Value :
- Code 1
- --------------------------------------------------------------------------------
- Trigger : ?userinfo
- Language : BDScript 2
- Code :
- $nomention
- $removeButtons
- $botTyping
- $var[user;$findUser[$message;yes]]
- $author[Userinfo โข $nickname[$var[user]]]
- $authorIcon[$userAvatar[$var[user]]]
- $footer[Requested by $nickname]
- $footerIcon[$authorAvatar]
- $color[$getRoleColor[$highestRole[$findUser[$message;yes]]]]
- $try
- $textSplit[$date-$userJoinedDiscord[$var[user]]-$userJoined[$var[user]]-$creationDate[$guildID];-]
- $httpGet[https://showcase.api.linx.twenty57.net/UnixTime/tounixtimestamp?datetime=$userJoined[$var[user];2006/01/02+15:04:05]]
- $description[
- ๐ฎ **$username[$var[user]]#__$discriminator[$var[user]]__**
- > **$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]**
- ๐ **[Dates :\](https://www.google.com/search?q=dates)**
- > **`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>)
- > **`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>)
- > **`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>)
- ๐ฅ **[Perms :\](https://www.google.com/search?q=perms)**
- > $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]
- ๐งโ๐ผ **[Roles :\](https://www.google.com/search?q=roles)**
- > **Highest Role :** <@&$highestRole[$var[user]]>
- > $replaceText[$replaceText[$eval[$replaceText[<@&ยฅfindRole[$replaceText[$userRoles[$var[user]];
- ;\]> <@&ยฅfindRole[;-1]\];ยฅ;$;-1]\]]; <@&$highestRole[$var[user]]>;;1]; <@&\];;1]
- ๐ **[Usernames :\](https://www.google.com/search?q=usernames&oq=username)**
- > $cropText[$getVar[oldusernames;$var[user]];200;...]
- ๐ท๏ธ **[Nicknames :\](https://www.google.com/search?q=nicknames)**
- > $cropText[$getUserVar[oldnicknames;$var[user]];200;...]
- ]
- $catch
- $textSplit[$date-$userJoinedDiscord[$var[user]]-0-0-0-$creationDate[$guildID];-]
- $description[
- ๐ฎ **$username[$var[user]]#__$discriminator[$var[user]]__**
- > **$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]**
- ๐ **[Dates :\](https://www.google.com/search?q=dates)**
- > **`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>)
- > **`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>)
- > **`Server Joined :` __Unknown days ago__**
- ๐ฅ **[Perms :\](https://www.google.com/search?q=perms)**
- > $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]
- ๐งโ๐ผ **[Roles :\](https://www.google.com/search?q=roles)**
- > **Highest Role :** <@&$highestRole[$var[user]]>
- ๐ **[Usernames :\](https://www.google.com/search?q=usernames)**
- > $cropText[$getVar[oldusernames;$var[user]];200;...]
- ๐ท๏ธ **[Nicknames :\](https://www.google.com/search?q=nicknames)**
- > $cropText[$getUserVar[oldnicknames;$var[user]];200;...]
- ]
- $endtry
- Code 2
- --------------------------------------------------------------------------------
- Trigger : < [MUST BE "<" OR "$alwaysReply" ONLY]
- Language : BDScript 2
- Code :
- $c[name update]
- $async[useraut]
- $try
- $if[$checkContains[$getVar[oldusernames;$authorID];$username]==false]
- $setVar[oldusernames;$cropText[$username, $getVar[oldusernames;$authorID];495;...];$authorID]
- $endif
- $endtry
- $endasync
- $async[nickaut]
- $try
- $if[$checkContains[$getUserVar[oldnicknames;$authorID];$nickname]$checkCondition[$username!=$nickname]==falsetrue]
- $setUserVar[oldnicknames;$cropText[$nickname, $getUserVar[oldnicknames;$authorID];495;...];$authorID]
- $endif
- $endtry
- $endasync
- $async[usermen]
- $try
- $if[$checkContains[$getVar[oldusernames;$mentioned[1;yes]];$username[$mentioned[1;yes]]]==false]
- $setVar[oldusernames;$cropText[$username[$mentioned[1;yes]], $getVar[oldusernames;$mentioned[1;yes]];495;...];$mentioned[1;yes]]
- $endif
- $endtry
- $endasync
- $async[nickmen]
- $try
- $if[$checkContains[$getUserVar[oldnicknames;$mentioned[1;yes]];$nickname[$mentioned[1;yes]]]$checkCondition[$username[$mentioned[1;yes]]!=$nickname[$mentioned[1;yes]]]==falsetrue]
- $setUserVar[oldnicknames;$cropText[$nickname[$mentioned[1;yes]], $getUserVar[oldnicknames;$mentioned[1;yes]];495;...];$mentioned[1;yes]]
- $endif
- $endtry
- $endasync
Advertisement
Add Comment
Please, Sign In to add comment