Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
3
Indexable
Never
else if (input == ("!true")) {
    sta == "1";
    console.log(sta + 'now online')
}
else if (input == ("!false")) {
    sta == "0";
    console.log(sta + 'now offline')
}
else if (input == ("!slp")) {
    if (sta == "0")
        console.log('Slp is off')
 else {
    if (sta = "1")
    axios.get("https://api.coingecko.com/api/v3/coins/smooth-love-potion").then((response => {
        let info = response.data.name,
        ph = response.data.market_data.current_price.php,
        cap = response.data.market_data.market_cap.php,
        rnk = response.data.market_data.market_cap_rank,
        vol = response.data.market_data.total_volume.php,
        hgh = response.data.market_data.high_24h.php,
        lwh = response.data.market_data.low_24h.php,
        time = response.data.timestamp
        {
        var msg = 
        {
          body: `šššš¦šž:  ${info}\n\nš‚š®š«š«šžš§š­ šš«š¢šœšž: ā‚± ${ph}\nšŒššš«š¤šžš­ š‚ššš©: ā‚± ${cap}\nšŒššš«š¤šžš­ š‚ššš© š‘ššš§š¤: ${rnk}\nš“š«šššš¢š§š  š•šØš„š®š¦šž: ā‚± ${vol}\nšŸšŸ’š‡ š‹šØš°/šŸšŸ’š‡ š‡š¢š š”: ā‚± ${lwh}/ā‚± ${hgh}\nTimestamp: ${time}`,
          attachment: fs.createReadStream(__dirname + "/pic/SLP.webp")        
        }
        api.sendMessage(msg, event.threadID, event.messageID);
      };
    })
  )}
}