Communication and commands bot.
- Python >=3.7 as code interpreter for all important tasks
- (Optional) git for
git
plugin - (Optional) Docker for container building & running
- Use virtual environment:
- Install:
python -m venv .venv
- Activate (Windows):
.venv\Scripts\activate.bat
- Activate (Linux):
source .venv/bin/activate
- Install:
- Install dependencies:
pip install -r requirements.txt -r requirements-dev.txt
- Run code linting:
pylint botlet
- Run unit tests:
coverage run
- Report test coverage:
coverage report
(For other output formats, replacereport
byhtml
|json
|xml
)
- Show code documentation:
pdoc -o html/ botlet
- Manage distribution:
- Source archive:
python setup.py sdist
- Install locally:
pip install .
- Source archive:
- Start application:
- From source:
python -m botlet
- From installation:
botlet
- From source:
- Create docker container:
- Build image:
docker build -t botlet .
- Run container:
docker run -it --name botlet-lives botlet
(Containers can run with customized environment variables and configuration files in volumes)
- Build image:
- Call command line with
-h
for a help text - See configuration file formats in
botlet.config
package (config.ini & logging.ini) - Environment variables serve as parameters (f.e. secrets for server access)
For more, see plugins.
You can help with bug reports or feature ideas by opening issues.
Code contributions should be submitted as merge requests.
Please keep the quality up by checking your changes, using mentioned tools and following conventions.
- IO by http/rest (alternative to chat)
- Webhook listener (HTTP server):
- Gitlab CI