Created
November 10, 2020 12:04
-
-
Save sertdfyguhi/34b16064c1388147f77021c705cec892 to your computer and use it in GitHub Desktop.
Scriptable app script to get neko from nekos.life
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let widget = new ListWidget() | |
let req = new Request("https://nekos.life/api/v2/img/neko") | |
let json = await req.loadJSON() | |
let imgreq = new Request(json.url) | |
let img = await imgreq.loadImage() | |
widget.addImage(img).centerAlignImage() | |
widget.presentLarge() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment