Skip to content

A Discord bot for looking up EVE Online market prices

License

Notifications You must be signed in to change notification settings

Ionaru/MarketBot

Repository files navigation

Discord MarketBot for EVE Online

Build Status codecov Internet spaceships are serious business

General information

The purpose of this bot is to get fast information on the EVE Online market for specific items and in specific regions.

It uses a combination of data from Evepraisal and the EVE Swagger Interface provided by CCP.

Usage

Add this bot to your Discord server! or alternatively you can try it out first on my dev server.

Bot commands

Commands can be found on the MarketBot website's commands page.

Discord permissions

Required permissions can be found on the MarketBot website's permissions page.

Screenshots

MarketBot in action!

Image of price command

Image of sell command

Image of item command

Image of history command

Logging

This bot keeps records of issued commands, this data is used to monitor performance, usage and accuracy of the bot.

What information does it save?

  • The channel in which the command was issued.
    • For counting how many unique channels/servers this bot is active in.
  • The username and id of the user who issued a command to the bot.
    • This helps me count how many unique channels the bot is active in, because the above logging does not include Direct Message channels
  • The item-parameter of the command and the item the bot did the search for.
    • For monitoring the accuracy of the bot's guessing system and tracking which items are most often searched for. This data will allow me to build shortcuts in the guessing system to improve performance.
  • The region-parameter of the command and the region the bot did the search for.
    • For counting which regions are most often selected to search in. I have a feeling it'll be The Forge, but with this data I can build new functionality that can search a select few regions at the same time to get you the best item price. It is impractical to have this feature search all regions in New Eden.

Feature requests

Please open an issue if you have any feature ideas for this bot or are missing any functionality.

Alternatively you can contact me in EVE Online: Ionaru Otsada, or on Discord: Ionaru#3801.

Self-hosting

It is possible to self-host this bot, it requires NodeJS 14 or greater.

Step one: Creating a bot user

  1. Go to https://discordapp.com/developers/applications/me.
  2. Create a new App, give it a name and picture. The "redirect URL" is not needed. Click "Create App".
  3. Click on "Create a Bot User" and confirm.
  4. Click the link next to "Token" to reveal your Discord Bot Token, you will need it later.
  5. Invite the bot to your server by placing the bot's Client ID in this link: https://discordapp.com/oauth2/authorize?client_id=PLACE_CLIENT_ID_HERE&scope=bot%20applications.commands
  6. Paste the link in your web browser and follow the steps on the Discord website.

Step two (Docker): Installing the bot

  1. Install Docker and Docker Compose.
  2. Go to the Releases page, download and extract the latest release.
  3. Go to the config folder, create a copy of marketbot.template.ini and name the copy marketbot.ini. Set the Discord Bot Token to the one you created.
  4. Create a .env file containing the variables MARKETBOT_CONFIG_VOLUME, MARKETBOT_DATA_VOLUME and MARKETBOT_LOG_VOLUME pointing to the relevant directories (or leave them empty).
  5. Run docker-compose up.

Step two (Node.js): Installing the bot

  1. Install Node.js.
  2. Go to the Releases page, download and extract the latest release.
  3. Install dependencies with npm install.
  4. Go to the config folder, create a copy of marketbot.template.ini and name the copy marketbot.ini. Set the Discord Bot Token to the one you created.
  5. Go back to the main folder and run npm start.

Contact me in EVE Online: Ionaru Otsada or on Discord: Ionaru#3801 if you need any assistance.

To-Do & Ideas

  • Support for searches in Jita, Amarr & other trade hubs
  • % difference between lowest sell order and highest buy order
  • Show volume in price history
  • Show deviation between low and high in price history
  • EVE Online quotes in bot (error) messages
  • Darker graphs to better match Discord colors
  • More information in price command output (low/high)

Developer information

Want to contribute? Awesome! Just follow these steps to get started:

  1. Fork this repository and clone the fork into a directory of your choice.
  2. Follow the Self-hosting steps to get a development version of the bot up and running
  3. Make your changes, test them and create a pull request.

Special thanks

Bugsnag