diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d8c2988 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +TOKEN="AAAAA" +GUILD_ID="AAAAA" +ERROR_LOGS_CHANNEL="AAAAA" +PAGESPEED_API_KEY="AAAAA" +REDIS_URL="redis://127.0.0.1/" +HOST="0.0.0.0" +PORT="8080" diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..0cfcdcc --- /dev/null +++ b/.envrc @@ -0,0 +1,11 @@ +# only use flake when `nix` is present +if command -v nix &> /dev/null; then + if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" + fi + + watch_file ./nix/dev.nix + use flake +fi + +dotenv_if_exists