https://github.com/csusters/csust-got
πππ csust new bot in go
https://github.com/csusters/csust-got
bot telegram
Last synced: about 2 months ago
JSON representation
πππ csust new bot in go
- Host: GitHub
- URL: https://github.com/csusters/csust-got
- Owner: CSUSTers
- License: mit
- Created: 2020-03-21T06:08:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-04-22T05:13:27.000Z (2 months ago)
- Last Synced: 2026-04-23T13:26:48.406Z (2 months ago)
- Topics: bot, telegram
- Language: Go
- Homepage:
- Size: 38 MB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csust-got
[](https://goreportcard.com/report/github.com/csusters/csust-got)
[](https://codebeat.co/projects/github-com-csusters-csust-got-master)








A modern Telegram bot for CSUST, developed in Go.
[English](README.md) | [δΈζ](README_zh-CN.md)
## Features
- π€ AI Chat Conversations (supports multiple models)
- π Message Search (powered by MeiliSearch)
- π¨ Stable Diffusion Image Generation
- π² Gacha System
- π Entertainment Features
- π§ Flexible Configuration System
- π― Regular Expression Triggers
- π‘οΈ Comprehensive Permission Management
- π MCP (Model Context Protocol) Support
## System Requirements
- Go 1.26+
- Redis
- Docker & Docker Compose (recommended)
## Quick Deployment
### Using Docker Compose (Recommended)
You need to install Docker first.
Clone the project:
```bash
git clone git@github.com:CSUSTers/csust-got.git
cd csust-got
```
Then run with Docker Compose:
```bash
docker-compose up -d
```
### Build from Source
```bash
# Clone the project
git clone git@github.com:CSUSTers/csust-got.git
cd csust-got
# Install dependencies
make deps
# Build
make build
# Run
./got
```
## Upgrade
Pull the latest version:
```bash
docker-compose pull
docker-compose up -d
```
## Configuration
Please modify the configuration in `config.yaml`.
- `token`: Change to your bot token
- `redis.pass`: Change Redis password
- `requirepass` in `redis.conf`: Change Redis password (must match the above)
## Commands
### Basic Functions
``` text
say_hello - A simple greeting
hello_to_all - Greet everyone
recorder - Repeat messages
info - Get bot information
id - Get user ID (private chat)
cid - Get group ID
```
### Search Functions
``` text
google - Google search
bing - Bing search
bilibili - Search on Bilibili
github - Search on GitHub
search - Search message history
search - -id Search messages in specific group
search - -p Search with pagination
```
### AI Chat
``` text
chat - Chat with AI
think - Deep thinking mode
summary - Summarize replied content (reply to a message)
```
### Management Functions
``` text
ban_myself - Ban yourself for rand[40,120] seconds
ban - Ban command [Admin]
ban_soft - Soft ban [Admin]
fake_ban - [duration] Fake ban
fake_ban_myself - Fake ban yourself
kill - Fake kill
no_sticker - Enable traffic-saving mode
shutdown - Shutdown bot
boot - Boot up bot
```
### Entertainment Functions
``` text
hitokoto - [type:ab..kl] Random quotes
hitowuta - Random poems
hito_netease - NetEase style quotes
mc - Minecraft mini-game
reburn - Respawn (MC game)
gacha_setting - Set JSON gacha configuration
gacha - Draw cards according to your configuration
```
### Voice Related
``` text
getvoice - character= gender= theme= type=
```
### Stable Diffusion
``` text
sd - Generate images
sdcfg - Configure SD server
sdcfg - set Set configuration
sdcfg - get Get configuration
sdlast - Get last used prompt
```
### Utility Functions
``` text
forward - [msgID] Forward a historical message
sleep - Time to sleep
no_sleep - Don't sleep
run_after - Remind yourself to do something later
hoocoder - Hoo encoding
decode - _[decoding]_[encoding] Decode text
bye_world - [duration] Say goodbye to the world
hello_world - Say hello to the world
iwant - f= I want sticker
setiwant - f= vf= sf= Set sticker format
```
## Tech Stack
- **Language**: Go 1.26+
- **Framework**: [telebot.v3](https://github.com/tucnak/telebot)
- **Database**: Redis
- **Search**: MeiliSearch
- **AI**: OpenAI API Compatible Interface
- **Image Generation**: Stable Diffusion WebUI
- **Containerization**: Docker & Docker Compose
## Development
### Local Development
```bash
# Install dependencies
make deps
# Run tests
make test
# Build
make build
# Code check
golangci-lint run
```
## License
This project is licensed under the [MIT License](LICENSE).
---
**Note**: This project is for educational and communication purposes only.