Better formatting, add redis_url to example .env

This commit is contained in:
2025-07-05 20:06:25 +02:00
parent 945e17f271
commit f82d9cea79
2 changed files with 8 additions and 5 deletions

View File

@@ -17,4 +17,7 @@ CHATTER_ID= # Twitch ID of the chatting user
CHATTER_IS_STREAMER= # If the bot that activates on commands is on the same account as the streamer, set this to true. Make sure the STREAMER_ID and CHATTER_ID match in that case.
# Pocketbase config
# POCKETBASE_URL= # Pocketbase URL. Defaults to localhost:8090
# POCKETBASE_URL= # Pocketbase URL. Defaults to http://localhost:8090
# Redis/Valkey config
# REDIS_URL= # Redis URL. Defaults to redis://localhost:6379

View File

@@ -2,7 +2,7 @@ import kleur from "kleur";
import { eventSub, streamerApi, streamerId, logger } from "..";
eventSub.onRevoke(event => {
logger.ok(`Successfully revoked EventSub subscription: ${event.id}`);
logger.ok(`Successfully revoked EventSub subscription: ${kleur.underline(event.id)}`);
});
eventSub.onSubscriptionCreateSuccess(event => {
@@ -11,15 +11,15 @@ eventSub.onSubscriptionCreateSuccess(event => {
});
eventSub.onSubscriptionCreateFailure(event => {
logger.err(`Failed to create EventSub subscription: ${event.id}`);
logger.err(`Failed to create EventSub subscription: ${kleur.underline(event.id)}`);
});
eventSub.onSubscriptionDeleteSuccess(event => {
logger.ok(`Successfully deleted EventSub subscription: ${event.id}`);
logger.ok(`Successfully deleted EventSub subscription: ${kleur.underline(event.id)}`);
});
eventSub.onSubscriptionDeleteFailure(event => {
logger.err(`Failed to delete EventSub subscription: ${event.id}`);
logger.err(`Failed to delete EventSub subscription: ${kleur.underline(event.id)}`);
});
import { readdir } from 'node:fs/promises';