Skip to content

Installation

Make sure you have the following installed on your machine:

  • Python (version 3.8 or higher)
  • Node.js (for running this documentation site)
  • Ollama (for running local AI models)

Open your terminal and clone the GitHub repository, then navigate into the folder:

Terminal window
git clone https://github.com/Epic34-cyberdudder/Proto.git
cd Proto

Create a Python virtual environment.

Terminal window
python -m venv .venv
Terminal window
python3 -m venv .venv

IMPORTANT: You must have the virtual environment activated before installing the requirements, running the bot, using the Fluttershy GUI, or building the executable.

Terminal window
.venv\Scripts\activate.bat
Terminal window
source .venv/bin/activate

After activation, your terminal should show something similar to:

(.venv) C:\Users\YourName\Proto>

If you do not see (.venv) at the beginning of your terminal prompt, the virtual environment is not activated.

Make sure your virtual environment is still activated.

Install the required Python packages:

Terminal window
pip install -r requirements.txt

Then install the Chromium browser used by Playwright:

Terminal window
playwright install chromium

Pull one of the recommended Ollama models:

Terminal window
ollama pull qwen2.5:7b

or:

Terminal window
ollama pull qwen2.5:14b

or:

Terminal window
ollama pull llama3.1:8b

Make sure the model you install matches the model configured in the .py script.

The project includes a Fluttershy GUI and a build.py script that can package the GUI into an executable.

IMPORTANT: Your virtual environment must be activated before running build.py.

With (.venv) visible in your terminal, run:

Terminal window
python build.py

The build script will package fluttershy.py into an .exe.

After the build completes, check the project’s output/build directory for the generated executable.

If (.venv) is not shown in your terminal, stop and activate the virtual environment before running build.py.

Once the executable has been built, you can launch the generated .exe.

Alternatively, you can run the GUI directly from Python while your virtual environment is activated:

Terminal window
python fluttershy.py

To allow the application to connect to a dedicated Chrome debugging session, start Chrome with remote debugging enabled.

Terminal window
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\chrome_dev_profile"
Terminal window
google-chrome --remote-debugging-port=9222 --user-data-dir="$HOME/chrome_dev_profile"
Terminal window
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir="$HOME/chrome_dev_profile"

Log in to the required service in the new Chrome window.

Important: use a dedicated browser profile for this application and do not share your session data, cookies, or credentials.

Open Discord_bot.py and adjust the Ollama model to the model you installed.

You can also configure whether you want sarcasm enabled, if that option is available in the script.

Make sure your virtual environment is activated.

Run:

Terminal window
python Discord_bot.py

Your bot should now be running.

Now Enjoy Your Bot!