Check out all the different commands, and maybe make some more. With version 2.3 of Rocket Bot, you can do a lot.
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.
The original Rocket Bot was created by CosmoQuest community member Kaio Duarte. The current version is being maintained primarily by TheRealFakeAdmin and KeeperOfMaps.
🌑 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
Starting in the Rocket-Bot
directory
-
cd CosmoQuestBot-master
-
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
-
After making your changes, save the file as
.env
. -
Run
docker build . -t rocket-bot:v2.3.1
-
Run
docker run --name rocket-bot-231 -d rocket-bot:v2.3.1
from anywhere on the system to start the bot- To auto-restart after a server reboot, add the tag
--restart always
After the first install, there is no need to run the build command until the next update. All the necessary packages have already been installed.
- To auto-restart after a server reboot, add the tag
Eventually you might want to stop the container, run the following commands to accomplish this:
-
docker ps
displays all running process; locaterocket-bot:v2.3.1
& note theContainer ID
- if it returns no process, you need to change your context by running
docker context list
thendocker context use <context_not_marked_with_*>
- run step 1 again
- if it returns no process, you need to change your context by running
-
docker stop rocket-bot
After a short time, it should return the Container Name you just entered, this means it stopped successfully.
-
docker rm <container_id>
(optional)- Use this before updating to a new version
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. |