Functionalities
Other
$findInAPI
Finds API properties from the API in the command header. The API must be in the command header and labeled `api:`

FUNCTION USAGE

  • $findInAPI[property;property;etc...]

Properties:

property - Define an API property to return it's value.

Example:

1
bot.Command({
2
name: "joke",
3
api: {
4
link: "http://api.icndb.com/jokes/random/",
5
method: "GET"
6
},
7
code:`
8
$title[random joke]
9
$description[$findInAPI[value;joke]]
10
$footer[joke ID: $findInAPI[value;id]]
11
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: