Skip to content

StarCitizenWiki/discord-bot

Repository files navigation

discord-bot

A Star Citizen Discord Bot using data from the Star Citizen Wiki API.

German Citizen Spotlight text

Features

Ship and Vehicle Cards

Command /schiff Pioneer

Pioneer

Command /fahrzeug Ursa Rover

Pioneer

Listing all available ships and vehicles

Calling the command without arguments outputs a list of all available ships or vehicles.

Command /schiff

Ships

Starsystem Cards

Command /system Sol

Pioneer

Listing all available systems

Calling the command without arguments outputs a list of all available starsystems.

Command /system

Ships

Manufacturer Cards

Command /hersteller RSI

RSI

Listing all available manufactuer

Calling the command without arguments outputs a list of all available manufacturer.

Command /hersteller

Ships

Comm-Link Cards

Command /comm-link

Comm-Links

Channel Notifications

Additionally you can a channel to receive notifications if new comm-links were published.
/comm-link add -> Adds the current channel to receive notifications.
/comm-link remove -> Removes the current channel from receiving notifications.

Commands

  • /schiff name
    • Get information about a ship or vehicle by name
  • /hersteller name
    • Get information about a manufacturer by name
  • /system name
    • Get information about a system by name
  • /stats
    • Get information about the current funding and fleet stats
  • /status
    • Get information about the current server status
  • /volk
    • Get information about all available nations in the wiki
  • /person
    • Get information about all available persons in the wiki

config.json

{
  "token": "Bot Token",
  "api_token": null,
  "api_url": "https://api.star-citizen.wiki",
  "wiki_url": "https://star-citizen.wiki",
  "locale": "de_DE",
  "footer": {
    "text": "Daten von https://star-citizen.wiki",
    "icon_url": "https://cdn.star-citizen.wiki/favicon.png"
  }
}

Build

docker build -t scw/discord-bot .

Run

docker run --name discord-bot -d -v /opt/discord-bot/config.json:/home/node/app/config.json scw/discord-bot

docker run --name discord-bot --restart unless-stopped -d -v /opt/discord-bot/config.json:/home/node/app/config.json -v /opt/discord-bot/db.json:/home/node/app/db.json scw/discord-bot