0.1.5 • Published 6 years ago

astronomy-bot-api v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

( ᵔ ᴥ ᵔ )

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago