Skip to content
/ botlet Public

Communication and commands bot. Template for bigger bot projects.

License

Notifications You must be signed in to change notification settings

Youka/botlet

Repository files navigation

Botlet

Communication and commands bot.

Requirements

  • Python >=3.7 as code interpreter for all important tasks
  • (Optional) git for git plugin
  • (Optional) Docker for container building & running

Usage

Preparation

  • Use virtual environment:
    • Install: python -m venv .venv
    • Activate (Windows): .venv\Scripts\activate.bat
    • Activate (Linux): source .venv/bin/activate
  • Install dependencies: pip install -r requirements.txt -r requirements-dev.txt

Code quality

  • Run code linting: pylint botlet
  • Run unit tests: coverage run
  • Report test coverage: coverage report
    (For other output formats, replace report by html|json|xml)

Deploy

  • Show code documentation: pdoc -o html/ botlet
  • Manage distribution:
    • Source archive: python setup.py sdist
    • Install locally: pip install .

Run

  • Start application:
    • From source: python -m botlet
    • From installation: botlet
  • Create docker container:

Configuration

  • 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.

IDE support

Contributing

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.

TODO

Features

Infrastructure

  • Gitlab CI

About

Communication and commands bot. Template for bigger bot projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published