Copilot is a discord bot that can help you look up the information you need. Anything from nearest material traders, tick detection, to faction influence details or ongoing conflicts. List of all commands can be found below. Bot currently supports two languages: English and Slovak.
- Add Copilot to your server
- Set it up using the
/copilot
command to choose your preferred language, faction and channel for reporting ticks. - Enjoy! 🎉
Note
Copilot is currently in closed beta so is not possible to invite him to your server yet. (But will be soon!)
Command | Description |
---|---|
copilot |
Setup/update preferences (admins only). |
faction systems |
List of systems where your faction is present with current influence & trend. |
faction conflicts |
List of ongoing conflicts with details. |
system |
Get info about a system and its factions. |
profile |
Show off your Elite Dangerous profile. |
broker |
Nearest tech brokers. |
trader |
Nearest material traders. |
factors |
Nearest interstellar factors. |
distance |
Calculate distance between two systems. |
tick |
Get the latest tick time. |
setup profile |
Setup your Elite Dangerous profile. |
- Create an app with a bot on Discord developer portal
- Copy
.env.example
file to.env
file and fill in the values. - Set your development server ID and bot token in
.env
file. - Install the dependencies with
pnpm install
. - Run
docker-compose up
to start the DB. - Run
pnpm run migrate:dev
to create the tables. - Run
pnpm run register-commands
to register the commands on your testing server. - Run
pnpm run dev
to start the bot.
After changing the prisma schema, create a migration using following command:
prisma migrate dev --name added_column
Whenever you make changes to your Prisma schema in the future, you manually need to invoke prisma generate
in order to accommodate the changes in your Prisma Client API.
To add new languages or update existing translations, run the following command:
pnpm run translations:watch
Then you can start editing the translations in src/i18n
folder. For documentation on how to use the translation library, see typesafe-i18n documentation.
Spaghetti code, please don't judge. 🙏
Made with 💗 in free time.