CosmoQuestX / Rocket-Bot

The Bot of the New generation of explorers for the CosmoQuest server on Discord. Assembled with official APIs and documentation, originally created using the Github Students Program tools.
https://CosmoQuest.org/x/
2 stars 1 forks source link
botkit-discord discord-api discord-bot discord-js mathjs nasa-api nodejs weather-api

πŸš€ Rocket Bot (v2.3.1 Stable)

Check out all the different commands, and maybe make some more. With version 2.3 of Rocket Bot, you can do a lot.

Introduction

This is a bot built for the CosmoQuest server on Discord, it is a replacement for the CosmoQuest One which was an outdated version of the robot.

History

The original Rocket Bot was created by CosmoQuest community member Kaio Duarte. The current version is being maintained primarily by TheRealFakeAdmin and KeeperOfMaps.

Application Programming Interface (APIs)

πŸŒ‘ NASA's APOD: We use the NASA API to access the full history of Astronomy Picture of The Day

πŸŒ’ Flickr API: Get images from the latest JWST posts.

πŸŒ“ OpenWeatherMap: OpenWeatherMap is an API for obtaining weather information

πŸŒ” AviationWeather.gov: Source for the METAR and TAF data

πŸŒ• Discord API: For everything basically


Docker Instructions

Docker - First install

Starting in the Rocket-Bot directory

  1. cd CosmoQuestBot-master

  2. Edit .example-env using your preferred IDE or text-editor. Fill out all necessary details (DISCORD_TOKEN, NASA_API_KEY, & WEATHER_API_KEY)

    Try nano .example-env

  3. After making your changes, save the file as .env.

  4. Run docker build . -t rocket-bot:v2.3.1

Docker - Usage instructions

Docker - Stopping the container

Eventually you might want to stop the container, run the following commands to accomplish this:

  1. docker ps displays all running process; locate rocket-bot:v2.3.1 & note the Container ID

    • if it returns no process, you need to change your context by running docker context list then docker context use <context_not_marked_with_*>
      • run step 1 again
  2. docker stop rocket-bot

    After a short time, it should return the Container Name you just entered, this means it stopped successfully.

  3. docker rm <container_id> (optional)

    • Use this before updating to a new version

Configuration

Options

Name Default Type Description
botName N/A <string> The name of the bot [does not need to match username]
debug false [bool] Enables debug features.
devId N/A [string] User ID of the bot owner.
discord N/A <url-string> Sets the Discord invite link.
github N/A <url-string> Sets the GitHub repo link.
throwInvalid false [bool] Toggles the !<command> is not a valid command. error message.
version N/A <array> Defines the version.