Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $onlyForIDs[$botOwnerID;]
- $jsonParse[
- {
- "novel":$getVar[novel;$authorID]
- }
- ]
- $httpAddHeader[content-type;application/x-www-form-urlencoded]
- $httpGet[https://pastebin.com/raw/qp8X4hzN]
- $jsonParse[
- {
- "novel":$getVar[novel;$authorID],
- "link":$httpResult
- }
- ]
- $if[$message!=]
- $onlyIf[$json[link;$message[1]]!=;There’s no novel of that ID.]
- $httpGet[$json[link;$message[1];link]]
- $jsonParse[
- {
- "novel":$getVar[novel;$authorID],
- "link":$json[link],
- "nlink":$httpResult
- }
- ]
- $author[$username]
- $authorIcon[$authorAvatar]
- $title[$json[link;$message[1];title]]
- $addField[Author;$json[link;$message[1];author]]
- $addField[About;$json[link;$message[1];about]]
- $addField[Chapters;$if[$json[nlink;chapters]>0]Chapter $json[nlink;chapters] - $json[nlink;chapter;$json[nlink;chapters];title]$endif
- $if[$sub[$json[nlink;chapters];1]>0]Chapter $sub[$json[nlink;chapters];1] - $json[nlink;chapter;$sub[$json[nlink;chapters];1];title]$endif
- $if[$sub[$json[nlink;chapters];2]>0]Chapter $sub[$json[nlink;chapters];2] - $json[nlink;chapter;$sub[$json[nlink;chapters];2];title]$endif
- $if[$json[nlink;chapters]>=3]*…*$endif
- ]
- $thumbnail[$json[link;$message[1];thumbnail]]
- $addButton[no;novel read $authorID;Read;secondary]
- $if[$json[link;$message[1];site]!=none]
- $addButton[no;$json[link;$message[1];site];Site;link]
- $endif
- $jsonSet[novel;title;$json[link;$message[1];title]]
- $jsonSet[novel;link;$json[link;$message[1];link]]
- $setVar[novel;$json[novel];$authorID]
- $else
- $title[Select a novel]
- $description[New Chapters every weekends.]
- $addField[Novels;$if[$json[link;1]!=]1 - $json[link;1;title]$endif
- $if[$json[link;2]!=]2 - $json[link;2;title]$endif
- $if[$json[link;3]!=]3 - $json[link;3;title]$endif
- $if[$json[link;4]!=]4 - $json[link;4;title]$endif
- $if[$json[link;5]!=]5 - $json[link;5;title]$endif
- $if[$json[link;6]!=]6 - $json[link;6;title]$endif
- $if[$json[link;7]!=]7 - $json[link;7;title]$endif
- $if[$json[link;8]!=]8 - $json[link;8;title]$endif
- $if[$json[link;9]!=]9 - $json[link;9;title]$endif
- $if[$json[link;10]!=]10 - $json[link;10;title]$endif]
- $footer[example: vnovel 1]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment