Advertisement
Aouchan

Emojiinfo Command

Mar 21st, 2023 (edited)
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.52 KB | Source Code | 0 0
  1. $nomention
  2. $botTyping
  3. $reply
  4. $allowUserMentions[]
  5. $suppressErrors[Invalid Emoji!]
  6. $argsCheck[1;Please insert an emoji for me to enlarge.]
  7.  
  8. $var[color;$getRoleColor[$highestRole[$botID]]]
  9.  
  10. $textSplit[$message[1];:]
  11. $if[$checkContains[$splitText[1];a]==true]
  12.   $var[animated;Yes]
  13. $else
  14.   $var[animated;No]
  15. $endif
  16.  
  17. $if[$checkContains[$message[1];:]==true]
  18. $textSplit[$message[1];:]
  19.  
  20. $var[Creation;$calculate[($replaceText[$splitText[3];>;;1]/4194304+1420070400000)/1000]]
  21.  
  22.  $author[Emoji information!]
  23.  $authorIcon[$userServerAvatar[$authorID]]
  24.  $title[\$splitText[1]:$splitText[2]:$splitText[3]]
  25. $addField[Created on;<t:$var[Creation]>
  26. That was <t:$var[Creation]:R>]
  27. $addField[Animated?;$var[animated]]
  28. $addField[Name;$splitText[2]]
  29.  $image[https://cdn.discordapp.com/emojis/$replaceText[$splitText[3];>;;1].$replaceText[$replaceText[*$splitText[1]*;*<*;png;1];*<a*;gif;1]]
  30.  $color[$var[color]]
  31.  $footer[Emoji ID: $replaceText[$splitText[3];>;;1]]
  32.  
  33. $else
  34.  $if[$or[$isNumber[$message[1]]==true;$checkContains[$toLowercase[$message];a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z]==true]]
  35.   Invalid Emoji
  36.    $stop
  37.     $endif
  38.      $jsonParse[{"method":"string.hex","nl":"crlf","oe":"UTF-32","options":{"encStrHexCase":"lower","encStrHexSeparatorEach":""},"type":"string","tz":"America/New_York"}]
  39.     $jsonSet[value;$message[1]]
  40.    $httpPost[https://dencode.com/dencode;$jsonStringify]
  41.   $var[results;$replaceText[$httpResult[response;encStrHex];000;;1]]
  42.  
  43. $textSplit[$var[results];000]
  44. $if[$splitText[2]==]
  45.   $var[emotes;$splitText[1]]
  46. $elseif[$splitText[3]==]
  47.   $var[emotes;$replaceText[$splitText[1];0;;1]-$replaceText[$splitText[2];0;;1]]
  48.   $if[$checkContains[$splitText[2];0fe0f]==true]
  49.   $var[emotes;$replaceText[$splitText[1];0;;1]]
  50.   $endif
  51. $elseif[$splitText[4]==]
  52.   $var[emotes;$splitText[1]-$replaceText[$splitText[2];0;;1]-$splitText[3]]
  53. $elseif[$splitText[5]==]
  54.   $var[emotes;$splitText[1]-$replaceText[$splitText[2];0;;1]-$replaceText[$splitText[3];0;;1]-$replaceText[$splitText[4];0;;1]]
  55. $elseif[$splitText[6]==]
  56.   $var[emotes;$splitText[1]-$replaceText[$splitText[2];0;;1]-$replaceText[$splitText[3];0;;1]-$replaceText[$splitText[4];0;;1]-$replaceText[$splitText[5];0;;1]]
  57. $endif
  58.  
  59. $var[color;$getRoleColor[$highestRole[$botID]]]
  60.  
  61.    $addField[Unicode Character;\$message[1]]
  62.    $addField[Encoded Format;$url[encode;$message[1]]]
  63.    $addField[U+hex;$replaceText[$toUppercase[U+$var[emotes]];-;+;-1]]
  64.  $image[https://twemoji.maxcdn.com/v/latest/72x72/$var[emotes].png]
  65. $color[$var[color]]
  66. $endif
  67.  
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement