Refactored the Discord bridge to build a media service during initialization, route attachment uploads through it, and dynamically label the status embeds and error diagnostics based on the selected provider while preserving the existing progress messaging flow. Introduced a new media package that defines the uploader interface and ships a Litterbox implementation responsible for fetching Discord attachments and posting them to Catbox while reporting HTTP status codes back to the bridge.
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
#Copy or rename this example file to .env
|
|
DISCORD_BOT_TOKEN=your_discord_bot_token_here
|
|
DISCORD_CHANNEL_ID=your_discord_channel_id_here
|
|
DISCORD_GUILD_ID=your_discord_guild_id_here
|
|
# Get this by right-clicking your Discord profile
|
|
DISCORD_PING_USER_ID=your_discord_user_id_here
|
|
DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
|
|
# Interval between reconnect attempts if connection is lost
|
|
RECONNECT_INTERVAL=5
|
|
# Media upload backend (currently only litterbox is supported)
|
|
MEDIA_UPLOAD_SERVICE=litterbox
|
|
# Which room will be bridged, append integer at the end of room name. Current options: general.1, gunt.8, keno-kasino.15, fishtank.16, beauty-parlor.18, sports.19,
|
|
SNEEDCHAT_ROOM_ID=1
|
|
# Enable logging to bridge.log file for debugging purposes(true/false, default: false)
|
|
ENABLE_FILE_LOGGING=false
|
|
|
|
#Use your Kiwifarm crendeitals for here
|
|
#This USER_ID number is in the url when you go to your profile, its required to prevent Discord from echoing your own messages back to you and to allow pings/push notifications work on Discord
|
|
# BRIDGE_USER_ID=123456
|
|
# BRIDGE_USERNAME=YourBridgeBot
|
|
# BRIDGE_PASSWORD=Password
|