Initial Commit
This commit is contained in:
14
.env.example
Normal file
14
.env.example
Normal file
@@ -0,0 +1,14 @@
|
||||
#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
|
||||
DISCORD_PING_USER_ID=your_discord_user_id_here # Get this by right-clicking your Discord profile
|
||||
DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
|
||||
RECONNECT_INTERVAL=5 # Interval between reconnect attempts if connection is lost
|
||||
SNEEDCHAT_ROOM_ID=1 # Which room will be bridged, append integer at the end of room name. Current options: general.1, beauty-parlor.18, gunt.8, keno-kasino.15, sports.19, fishtank.16
|
||||
ENABLE_FILE_LOGGING=false # Enable logging to bridge.log file (true/false, default: false)
|
||||
|
||||
# Optional: Prevent echo loops by filtering messages from the bridge bot
|
||||
# BRIDGE_USER_ID=123456 # Numeric user ID of your bridge bot account on Sneedchat
|
||||
# BRIDGE_USERNAME=YourBridgeBot # Username of your bridge bot account on Sneedchat
|
||||
# BRIDGE_PASSWORD=Password # Password of your account
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
go.sum
|
||||
Sneedchat-Discord-Bridge
|
||||
2
README.md
Normal file
2
README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Sneedchat-Discord-Puppet-Bridge
|
||||
A Go program to bridge a Kiwifarms Sneedchat channel to Discord via webhooks by puppeting a user account.
|
||||
1846
Sneedchat-Discord-Bridge.go
Normal file
1846
Sneedchat-Discord-Bridge.go
Normal file
File diff suppressed because it is too large
Load Diff
15
go.mod
Normal file
15
go.mod
Normal file
@@ -0,0 +1,15 @@
|
||||
module sneedchat-discord-bridge
|
||||
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/bwmarrin/discordgo v0.27.1
|
||||
github.com/gorilla/websocket v1.5.1
|
||||
github.com/joho/godotenv v1.5.1
|
||||
)
|
||||
|
||||
require (
|
||||
golang.org/x/crypto v0.14.0 // indirect
|
||||
golang.org/x/net v0.17.0 // indirect
|
||||
golang.org/x/sys v0.13.0 // indirect
|
||||
)
|
||||
Reference in New Issue
Block a user