Skip to content

TurboNerd/bielli_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bielli Bot

Maledetto Bielli

Run the bot

is as simple as: ./biellibot.py

but that's good for testing, if you want a more consistent way to handle this use the provided bash scripts:

start.sh that will:

  • start the bot
  • redirect logs to ./logs/{timestamp}.log
  • write a PID file to ./run/biellibot.pid

stop.sh that will just kill the process in PID file.

Python setup (macOS)

  1. install/update homebrew

  2. install python3: $ brew install python3

    NOTE: python points to system installation (typically 2.7.X), python3 points to homebrew installation

  3. configure virtual environment

    $ mkdir python_envs
    $ cd python_envs/
    $ python3 -m venv cbtranslator
    
    # activate the env:
    $ source python_envs/biellibot/bin/activate
    # deactivate the env:
    $ deactivate
    

    NOTE: using the created env python --version points to python3 and also does pip

  4. install dependencies:

    $ source python_envs/biellibot/bin/activate
    $ cd bielli_bot/
    $ pip install -r requirements.txt
    
  5. write your configuration in settings.json. For details see template configuration file: settings.template.json

Update requirements file:

In case other dependencies are added during development, to update the requirements file run:

$ pip freeze > requirements.txt

Releases

No releases published

Packages

 
 
 

Contributors