logo
0
4
Login

Message Bot

This is a Go-based WebSocket message bot.

Prerequisites

  • Go 1.23.4 or later
  • Docker

Installation

  1. Clone the repository:

    git clone https://cnb.cool/hepeichun/bot/message-bot.git cd message-bot
  2. Build the Docker image:

    docker build -t message-bot .

Usage

  1. Set the environment variables:

    export WS_SERVER=your_websocket_server export ACCESS_TOKEN=your_access_token
  2. Run the Docker container:

    docker run -e WS_SERVER=$WS_SERVER -e ACCESS_TOKEN=$ACCESS_TOKEN message-bot

Project Structure

  • go.mod: Go module dependencies.
  • main.go: Main application entry point.
  • Dockerfile: Docker configuration for building and running the application.

Dependencies

  • github.com/google/uuid v1.6.0
  • github.com/gorilla/websocket v1.5.3

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, topics, or website provided.
Language
Go91.1%
Markdown5.7%
Dockerfile2.9%
gitignore0.3%