astronomy-bot-api

0.1.5 • Public • Published

Astronomy Bot API

Examples

Needs async:

var astronomyBotApi = require("astronomy-bot-api");
const API = new astronomyBotApi("astronomy-KEY");

let res = await API.randomImage();

const embed = new Discord.MessageEmbed()
.setColor("RANDOM")
.setImage(`${res.image}`)
.setTitle(`${res.name}`)
.setURL(`https://astrology.mythicalbots.xyz/gallery/`)
.setFooter(`submitted by: ${res.user}`)

Response for randomImage():

{
  id: '',
  user: '',
  image: '',
  name: ''
}

Error Messages:

  • Astronomy API - Please give a valid API Key
  • Astronomy API - You are sending too many requests, please slow down

( ᵔ ᴥ ᵔ )

Package Sidebar

Install

npm i astronomy-bot-api

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

3.1 kB

Total Files

3

Last publish

Collaborators

  • teacup99