commit
760e5cbb15
4 changed files with 24 additions and 1 deletions
12
.github/workflows/entrypoint.yml
vendored
Normal file
12
.github/workflows/entrypoint.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: Test entrypoints
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- run: python -m pip install -U pip
|
||||||
|
- run: python -m pip install .
|
||||||
|
- run: matrix-webhook -h
|
||||||
|
- run: python -m matrix_webhook -h
|
|
@ -24,6 +24,8 @@ docker pull nim65s/matrix-webhook
|
||||||
Create a matrix user for the bot, and launch this app it with the following arguments or environment variables:
|
Create a matrix user for the bot, and launch this app it with the following arguments or environment variables:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
matrix-webhook -h
|
||||||
|
# OR
|
||||||
python -m matrix_webhook -h
|
python -m matrix_webhook -h
|
||||||
# OR
|
# OR
|
||||||
docker run --rm -it nim65s/matrix-webhook -h
|
docker run --rm -it nim65s/matrix-webhook -h
|
||||||
|
|
|
@ -3,7 +3,13 @@ import logging
|
||||||
|
|
||||||
from . import app, conf
|
from . import app, conf
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
|
def main():
|
||||||
|
"""Start everything."""
|
||||||
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
|
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
|
||||||
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
|
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
|
||||||
app.run()
|
app.run()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
|
@ -27,3 +27,6 @@ ignore = ["D200", "D203", "D204", "D212"]
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
matrix-webhook = "matrix_webhook.__main__:main"
|
||||||
|
|
Loading…
Reference in a new issue