diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..b46a1f9 --- /dev/null +++ b/.envrc @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +if [[ $(type -t use_flake) != function ]]; then + echo "ERROR: direnv's use_flake function missing. update direnv to v2.30.0 or later." && exit 1 +fi +#export BOT_ENV_FILE=./dev.env +export BOT_CONFIG_FILE=config.json +use flake +dotenv diff --git a/.gitignore b/.gitignore index b074105..ea09b8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ __pycache__ .venv devstate .env* +!.envrc config.json dev.data data diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 31709be..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -image: python:3.11 - -stages: - - check - -check: - image: python:3.11-bookworm - stage: check - script: - - apt-get update - - apt-get install -y make libolm-dev - - pip install uv - - uv sync --frozen --group dev - - uv run make check diff --git a/README.md b/README.md index 6155819..6b04a51 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ > a bot for ops in matrix +Repository: https://guardianproject.dev/ops/matrix-ops-bot + This bot catches webhooks and forwards them as messages to matrix rooms. Current supported webhooks: diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 4c0d8c7..0000000 --- a/shell.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ system ? "x86_64-linux", pkgs ? import { inherit system; } }: - -let - packages = [ - pkgs.python313 - pkgs.uv - pkgs.zsh - pkgs.olm - ]; - - LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ - pkgs.stdenv.cc.cc - ]; -in -pkgs.mkShell { - buildInputs = packages; - shellHook = '' - export SHELL=${pkgs.zsh} - export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" - export UV_PROJECT_ENVIRONMENT=".venv" - export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring - ''; -}