8000 GitHub - jantrw/SpaceLinker: 🌌 SpaceLinker is a Discord bot that connects people with space. It provides real-time information about the International Space Station (ISS) and the NASA Astronomy Picture of the Day.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🌌 SpaceLinker is a Discord bot that connects people with space. It provides real-time information about the International Space Station (ISS) and the NASA Astronomy Picture of the Day.

License

Notifications You must be signed in to change notification settings

jantrw/SpaceLinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
A7E2 pom.xml
Β 
Β 

Repository files navigation

🌌 SpaceLinker

A SpaceLinker that connects people with space – with support for NASA APIs and ISS tracking.

Features

  • ISS Tracking: Determines the current position (ocean or land with country + city), speed, and altitude of the International Space Station (ISS).

    ISS-Output

  • NASA Astronomy Picture of the Day: Displays the current NASA Picture of the Day.

    NASA-Picture-Output

  • NASA Astronomy Picture of the Day with Info: Displays the current NASA Picture of the Day with its description.

    NASA-Picture-Info-Output

  • Slash Commands: Supports modern Discord slash commands.

    Slash_Command

Installation

Requirements

  • Java 17+
  • Maven
  • A Discord bot token
  • Multiple free APIs (e.g., NASA API, ISS tracking API)

Setup

  1. Clone the repository:

    git clone https://github.com/jantrw/SpaceLinker.git

    cd SpaceLinker

  2. Create a config.properties file with the API keys and Discord token:

    DISCORD_TOKEN=your_token_here

    NASA_API_KEY=your_nasa_api_key_here

    USERNAME=your_username

  3. Build and run with Maven:

    mvn package

    java -jar target/SpaceLinker.jar

Usage

Available Commands

Command Description
/iss Displays current ISS data
/picture Shows the NASA Astronomy Picture of the Day
/pictureinfo Shows the NASA Astronomy Picture with Info
/prefix <new_prefix> Changes the command prefix

Architecture

Core classes of the bot:

  • DiscordBot.java – Starts the bot and registers commands.
  • BotListener.java – Handles messages and slash commands.
  • GuildDataManager.java – Stores guild-specific data.
  • ISSData.java – Sends ISS data as a Discord message.
  • NasaPictureOfTheDay.java – Sends the NASA Astronomy Picture of the Day as a Discord message.
  • JSONFetcherIss.java – Fetches current ISS data from an API.
  • JSONFetcherNasa.java – Fetches the NASA Picture of the Day.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Support

If you encounter any issues, create a GitHub issue.

License

MIT License

About

🌌 SpaceLinker is a Discord bot that connects people with space. It provides real-time information about the International Space Station (ISS) and the NASA Astronomy Picture of the Day.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0