Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jantrw/spacelinker

🌌 SpaceLinker ist ein Discord-Bot, der Menschen mit dem Weltraum verbindet. Er liefert aktuelle Informationen zur Internationalen Raumstation (ISS), das NASA Astronomy Picture of the Day sowie bald Mars-Wetterdaten, nahe Erdobjekte und Exoplaneten-Daten.
https://github.com/jantrw/spacelinker

api astronomy discord-bot exoplanets iss java mars-weather maven nasa slash-commands space

Last synced: about 3 hours ago
JSON representation

🌌 SpaceLinker ist ein Discord-Bot, der Menschen mit dem Weltraum verbindet. Er liefert aktuelle Informationen zur Internationalen Raumstation (ISS), das NASA Astronomy Picture of the Day sowie bald Mars-Wetterdaten, nahe Erdobjekte und Exoplaneten-Daten.

Awesome Lists containing this project

README

        

# 🌌 SpaceLinker

Ein SpaceLinker, der Menschen mit dem Weltraum verbindet – mit Unterstützung für NASA-APIs, ISS-Tracking und bald auch Mars-Wetterdaten, nahe Erdobjekte sowie Daten über Exoplaneten.

## Funktionen

- **ISS-Tracking**: Ermittelt die aktuelle Position (Ozean oder Land mit Staat + Stadt), Geschwindigkeit und Höhe der Internationalen Raumstation (ISS).

ISS-Output

- **NASA Astronomy Picture of the Day**: Zeigt das aktuelle NASA-Bild des Tages.

NASA-Picture-Output

- **NASA Astronomy Picture of the Day with Info**: Zeigt das aktuelle NASA-Bild des Tages mit der jeweiligen Beschreibung.

NASA-Picture-Info-Output

- **Slash Commands**: Unterstützt moderne Discord-Slash-Befehle.

Slash_Command

## Installation

### Voraussetzungen

- Java 17+
- Maven
- Ein Discord-Bot-Token

### Einrichtung

1. Repository klonen:
```sh
git clone https://github.com/jantrw/SpaceLinker.git
cd SpaceLinker
```
2. `config.properties` Datei mit den API-Schlüsseln und dem Discord-Token erstellen:
```config.properties
DISCORD_TOKEN=your_token_here
NASA_API_KEY=your_nasa_api_key_here
USERNAME=your_username
```
3. Mit Maven bauen und starten:
```sh
mvn package
java -jar target/SpaceLinker.jar
```

## Nutzung

### Verfügbare Befehle

| Befehl | Beschreibung |
| ------------------------ | ------------------------------------------- |
| `/iss` | Zeigt aktuelle ISS-Daten |
| `/picture` | Zeigt das NASA Astronomy Picture of the Day |
| `/pictureinfo` | Zeigt das NASA Astronomy Picture mit Info |
| `/prefix ` | Ändert das Befehlspräfix |

## Architektur

Die Kernklassen des Bots:

- `DiscordBot.java` – Startet den Bot und registriert Befehle.
- `BotListener.java` – Verarbeitet Nachrichten und Slash-Befehle.
- `GuildDataManager.java` – Speichert Guild-spezifische Daten.
- `ISSData.java` – Sendet die ISS-Daten als Discord-Nachricht.
- `NasaPictureOfTheDay.java` – Sendet das NASA Astronomy Picture of the Day als Discord-Nachricht.
- `JSONFetcherIss.java` – Holt aktuelle ISS-Daten von einer API.
- `JSONFetcherNasa.java` – Holt das NASA-Bild des Tages.

## Lizenz

MIT License