This is a Go-based WebSocket message bot.
Clone the repository:
git clone https://cnb.cool/hepeichun/bot/message-bot.git
cd message-bot
Build the Docker image:
docker build -t message-bot .
Set the environment variables:
export WS_SERVER=your_websocket_server
export ACCESS_TOKEN=your_access_token
Run the Docker container:
docker run -e WS_SERVER=$WS_SERVER -e ACCESS_TOKEN=$ACCESS_TOKEN message-bot
go.mod: Go module dependencies.main.go: Main application entry point.Dockerfile: Docker configuration for building and running the application.github.com/google/uuid v1.6.0github.com/gorilla/websocket v1.5.3This project is licensed under the MIT License. See the LICENSE file for details.