Skip to content

Running

qedk edited this page Aug 27, 2020 · 1 revision

If you've read the README, you'll know that the bots are essentially Python scripts at its core, so you would run it as you would run a normal script on your system, for e.g. from the goodbot directory:

$ python3 bots/goodbot.py

Similarly, ircbot.py for ircbot, and so on. Due to their very nature, they are all blocking scripts (except parsebot which is intended to run as a scheduled script aka cronjob).

Running the web app

The web app requires usual Flask setup like:

$ export FLASK_APP=app.py
$ flask run
 * Running on http://127.0.0.1:5000/

The Windows alternative would be set FLASK_APP=app.py. Depending on how your system is set up, it might just refuse to run unless you do python3 -m flask run.

Detailed instructions are available in Flask docs.