Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $reply
- $allowUserMentions[]
- $onlyIf[$guildID!=;You can't use this command in DMs.]
- $if[$isSlash==true]
- $defer
- $var[anime;$toLowercase[$message[anime]]]
- $else
- $botTyping
- $argsCheck[>1;Please provide an anime to search.]
- $var[anime;$toLowercase[$message]]
- $endif
- $async[Baka]
- $httpGet[https://kitsu.io/api/edge/anime?filter%5Btext%5D=$url[encode;$var[anime]]]
- $jsonSet[kitsu;$httpResult]
- $jsonParse[$json[kitsu]]
- $var[kitsu;$cropText[$jsonPretty[2];1900;...]]
- $var[banner;$httpResult[data;0;attributes;coverImage;original]]
- $endasync $await[Baka]
- $httpGet[https://apiv1.spapi.ga/anime/info?anime=$url[encode;$var[anime]]]
- $jsonSet[results;$httpResult]
- $jsonParse[$json[results]]
- $jsonUnset[description]
- $var[spapi;```js
- $jsonSetString[description;$cropText[$httpResult[description];300;...]]
- $replaceText[$replaceText[$replaceText[$jsonPretty[2];\n;;-1];\u0026;;-1];";;-1]```]
- $var[genres;$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[genres];";;-1];,;, ;-1];[;;1];\];;1]]
- $var[studios;$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[studios];";;-1];[;;1];\];;1];,;, ;-1]]
- $if[$var[genres]==]
- $var[tags;N/A]
- $else
- $var[tags;$var[genres]]
- $endif
- $if[$httpResult[score]!=N/A]
- $var[score;$httpResult[score]/10]
- $else
- $var[score;$httpResult[score]]
- $endif
- $if[$var[banner]==]
- $var[index;1]
- $else
- $var[index;2]
- $endif
- $image[$var[banner];1]
- $color[$random[1;16777216];1]
- $title[$httpResult[title];$var[index]]
- $addField[📖 Synopsis;$cropText[$httpResult[description];500;...][Read More\]($httpResult[url]);no;$var[index]]
- $addField[💠 Episodes;$replaceText[$httpResult[episodes];";;-1];no;$var[index]]
- $addField[🌺 Genres;$var[tags];no;$var[index]]
- $addField[⏳ Status;$httpResult[status];no;$var[index]]
- $addField[💌 Titles;**English Title**: $httpResult[english_title]
- **Japanese Title**: $httpResult[japanese_title];no;$var[index]]
- $addField[♦️ Ranked;$httpResult[ranked];no;$var[index]]
- $addField[☂️ Rated;$httpResult[rating];no;$var[index]]
- $addField[🌟 Score;$var[score]
- $replaceText[$httpResult[scoreStats];";;-1];no;$var[index]]
- $addField[☘️ Studios;$var[studios];no;$var[index]]
- $addField[⌚ Aired;$httpResult[airTime];no;$var[index]]
- $image[$httpResult[poster];$var[index]]
- $color[$optOff[$random[1;16777216]];$var[index]]
- $addTimestamp[$var[index]]
- $if[$jsonExists[trailer]==true]
- $addButton[no;$httpResult[trailer];Trailer;link]
- $else
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement