# QQ-bot **Repository Path**: attitude666/qq-bot ## Basic Information - **Project Name**: QQ-bot - **Description**: QQ机器人 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-01-16 - **Last Updated**: 2024-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # qq-bot * python >= 3.7.3 生成依赖包 ```shell pip freeze > requirements.txt ``` 安装依赖 ```shell pip install -r requirements.txt ``` 安装docker ```shell sudo curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && docker --version sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["http://hub-mirror.c.163.com"] } EOF sudo groupadd docker sudo gpasswd -a ${USER} docker sudo chmod a+rw /var/run/docker.sock sudo systemctl restart docker sudo service docker restart sudo systemctl start docker sudo systemctl enable docker ``` 使用docker安装 ```shell docker build -t qq_bot . docker run -P -d --name qq qq_bot:latest docker exec -it qq bash cd gocq/ nohup ./go-cqhttp_linux > nohupcmd.out 2>&1 & ``` qq机器人请看文档 [Docs](https://v2.nonebot.dev/) [gocq](https://docs.go-cqhttp.org/guide/quick_start.html#%E4%B8%8B%E8%BD%BD)