Skip to content

Commit 3e793ca

Browse files
committed
init auto-moderator
1 parent 1fd93d2 commit 3e793ca

File tree

13 files changed

+27
-176
lines changed

13 files changed

+27
-176
lines changed

bots/auto-moderator/.envrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

bots/auto-moderator/.envrc.local.sample

Lines changed: 0 additions & 2 deletions
This file was deleted.

bots/auto-moderator/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

bots/auto-moderator/AGENTS.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

bots/auto-moderator/CLAUDE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

bots/auto-moderator/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

bots/auto-moderator/flake.lock

Lines changed: 0 additions & 61 deletions
This file was deleted.

bots/auto-moderator/flake.nix

Lines changed: 0 additions & 25 deletions
This file was deleted.

bots/auto-moderator/lefthook.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

bots/auto-moderator/run.sh

100644100755
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
bun install --frozen-lockfile || {
5-
echo 'auto-moderator: Failed to bun install --frozen-lockfile. falling back to bun install...' 2>&1
6-
bun install
4+
function bail() {
5+
echo "$@"
6+
exit 1
77
}
88

9-
bun start
9+
ENV_FILE="${ENV_FILE:-.env}"
10+
if [ ! -f "$ENV_FILE" ]; then
11+
bail "Prerequesties not met: .env not found"
12+
fi
13+
14+
bun install --frozen-lockfile
15+
bun --env-file="$ENV_FILE" start

0 commit comments

Comments
 (0)