Skip to content

A python discord bot that uses astronomy APIs to concoct information and pictures for users

License

Notifications You must be signed in to change notification settings

AdvaithGS/Astrobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an Astronomy discord bot with various functionalities and uses; created with python 3.11 and disnake.

Table of contents

Invite

Use this link to invite AstroBot to your server:

Commands

As of now, there are the following commands:

/help

Returns the same list of commands that are listed below.

/daily

Gives the NASA APOD picture for the day.

Made using the discord embeds and the APOD api.

/daily <YYYY-MM-DD>

Gives the NASA picture for a specific date given by a user. Any valid date after 1995-6-16 is accepted. For eg. /daily 2005-6-7

/daily random

Gives a random NASA APOD picture from archives. Dates starting from 1996.

/info <query>

Ask about ANYTHING related to astronomy and astronomical bodies. It gives data and pictures related to the given query.

This uses Solar system Open Api and Wikpedia's API in a discord embed.

/iss

Find the live location of the international space station with respect to the Earth. This uses the reverse_geocoder python library and the WhereTheIssAt API.

/channel

Subscribe to the daily APOD service and get the daily picture as soon as it is released on the channel in which this command is posted.

/remove

Remove a channel from the APOD subscription.

/fact

Get a random astronomy fact from the fact library.

/weather <location>

Get the real-time weather at any location

/phase <location>

Get the phase of the moon at a user specified location

/sky <location>

Get a map of the sky at a user specified location

/in_space

Get info about the people currently in space in the ISS or in other stations.

/news

Get the latest news in the sphere of astronomy,cosmology and space science.

Sources

Given below is the list of APIs/Sources Astrobot uses for its commands

  1. AstronomyAPI
  2. Geopy Library
  3. NASA's Astronomy Picture of The Day
  4. OpenWeatherMap API
  5. reverse_geocode library
  6. Wikimedia API
  7. WhereTheISSAt api
  8. SpaceFlight API
  9. Cormac Quaid's ISS API

Vote

You can vote for the bot so as to get more exposure at -

https://top.gg/bot/792458754208956466/vote

https://discordbotlist.com/bots/astrobot-2515/upvote

Support

Join this discord server for any queries/problems/suggestions:

https://discord.gg/ZtPU67wVa5

Targets

  1. Add mars rover cam images

  2. Integrate tools like SunCalc and MoonCalc

  3. Improve .info to give only data and bring in .image to give images (50% done)

  4. Possibly use SpaceFlight News API

  5. Add video demos to README file

  6. Use NASA's PDS Search API

  7. Beef up /news to add other news sources

Contribute

Help Astrobot become better!

Always welcome more inputs, through issues and PRs. Open one if youve any ideas or constructive improvements to the bot. Also, if you dont want to contribute to the code, you can also add to the facts.txt database :)

Creator

This bot has been created with blood, sweat and tears by Advaith GS.

Find me on: https://advaithgs.repl.co
Discord: AdvaithGS#6700
email : [email protected]

And that's it !

About

A python discord bot that uses astronomy APIs to concoct information and pictures for users

Topics

Resources

License

Stars

Watchers

Forks

Languages