ScottJDaley / ada

A Discord bot for the Satisfactory video game.
MIT License
29 stars 5 forks source link
discord-bot discord-py discord-py-rewrite python python-3 python3 satisfactory satisfactory-game satisfactory-video-game satisfactorygame

Build Status

ADA

alt text

I am ADA, also known as Artificial Directory and Assistant, tasked to support pioneers, such as you, in their mission.

~ ADA

ADA is a Discord bot for the Satisfactory video game.

Invite to Server

With ADA, you can browse information about items, recipes, and buildings within Discord. You can also ask ADA to calculate an optimal production chains and produce visualizations.

alt text

ADA is also available as a command line tool.

Query Syntax

Information Query

Provides information about items, buildings, and recipes in the game.

Query Syntax

alt text

Notes

Examples

Optimization Query

Finds an optimal production chain. Attempts to minimize inputs, maximize outputs, and adhere to any given constraints.

Query Syntax

alt text

Notes

Examples

Hosting ADA yourself

:warning: You do not need to host ADA yourself to use the bot. Use the link at the top of the readme to invite ADA to your server. These instructions are only for those interested in customizing ADA and/or hosting it themselves.

Windows Installation

  1. Download python 3 from https://www.python.org/downloads/

  2. Install GraphViz:

  3. Run the following as admin to configure GraphViz:

    dot -c
  4. Clone repo (in directory of you choosing)

    git clone https://github.com/ScottJDaley/ada.git
  5. Move inside the repo

    cd ada
  6. Create virtual environment and activate it

    py -m venv venv
  7. Active the virtual environment

    venv\Scripts\activate

    :bulb: You may deactivate the virtual environment with deactivate

  8. Install python modules

    py -m pip install -r requirements.txt

MacOS Installation

  1. Download and install Homebrew

    :bulb: Make sure Hombrew's package lists are up-to-date with brew update

  2. Install Python 3

    brew install python3
  3. Install GraphViz

    brew install graphviz
  4. Clone repo (in directory of you choosing)

    git clone https://github.com/ScottJDaley/ada.git

    :bulb: MacOS might prompt you to download Xcode Commandline Tools the first time you use the git command

  5. Move inside the repo

    cd ada
  6. Create python virtual environment and activate it

    python3 -m venv venv && source venv/bin/activate

    :bulb: You may deactivate the virtual environment with deactivate

  7. Install python requirements

    pip install -r requirements.txt
  8. Set up Discord bot

    export DISCORD_TOKEN={token from discord developer portal}

Linux Installation

  1. Install python3

    sudo apt-get install python3
  2. Install pip

    sudo apt-get install python3-pip
  3. Install GraphViz

    sudo apt-get install graphviz
  4. Install git

    sudo apt-get install git
  5. Clone repo (in directory of you choosing)

    git clone https://github.com/ScottJDaley/ada.git
  6. Move inside the repo

    cd ada
  7. Create Virtual environment and activate it

    python3 -m venv venv && source venv/bin/acivate

    :bulb: You may deactivate the virtual environment with deactivate

  8. Install python packages

    pip3 install -r requirements.txt
  9. Set up Discord bot

    export DISCORD_TOKEN={token from discord developer portal}

Discord Bot Usage

  1. Run bot.py
  2. Ensure the bot is running and was started with a valid DISCORD_TOKEN as described above.
  3. Invite the bot to your server using a link generated from OAuth2 page on https://discord.com/developers/applications.
  4. The bot should be able to respond to commands in Discord after a few seconds.
  5. Press Enter in the terminal to shut down the bot.

Command Line Tool Usage

  1. Run tool.py.
  2. Type a query and press Enter.
  3. Type exit to quit.

Acknowledgements

Contributing

Feel free to send pull requests and submit new issues. You are also welcome to fork this repo to make your own changes.