mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 00:51:37 +01:00
Better formatting, add redis_url to example .env
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user