This is a code for those who don't know how to use the weather Api, api it's something that allows us to get information through the link and convert into a Json type.
module.exports = {
name: "weather",
code: `$title[1;$replaceText[$replaceText[$checkCondition[$message[1]==];true;Malaysia];false;$message[1]] Temperature]
$description[1;Temp F: $getObjectProperty[temperature;temp_f]
Temp C: $getObjectProperty[temperature;temp_c]]
$footer[1;$if[$checkCondition[$getObjectProperty[temperature;temp_c]>=30]==true;Normal;$if[$checkCondition[$getObjectProperty[temperature;temp_c]>=40]==true;Hot;$if[$checkCondition[$getObjectProperty[temperature;temp_c]<=5]==true;Cold;$if[$checkCondition[$getObjectProperty[temperature;temp_c]<=29]==true;Slight Cold]]]]]
$color[1;White]
$createObject[temperature;$getObjectProperty[weather;current]]
$createObject[weather;$jsonRequest[http://api.weatherapi.com/v1/current.json?key=35f61e246aec491eaea60734231612&q=$replaceText[$replaceText[$checkCondition[$message[1]==];true;Malaysia];false;$message[1]]&aqi=no]]
$suppressErrors[Code error / invalid country name]`
}