Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env fish
2
3# Test chat messages from MongoDB through the censor filter
4set limit $argv[1]
5
6if test -z "$limit"
7 set limit 10
8end
9
10# Load MongoDB credentials from vault
11set -x MONGODB_CONNECTION_STRING $MONGODB_CONNECTION_STRING
12set -x MONGODB_NAME "aesthetic"
13
14echo "Testing $limit messages from MongoDB chat-system collection..."
15echo "Make sure the Caddy server is running (./start-server.fish)"
16echo ""
17
18node /workspaces/aesthetic-computer/censor/test-mongodb-messages.mjs $limit