SeaBot_QQ

所属分类:机器人/智能制造
开发工具:Python
文件大小:320KB
下载次数:0
上传日期:2023-03-29 12:30:35
上 传 者sh-1993
说明:  SeaBot_QQ,SeaBot_QQ是一个面向新闻资讯方向的QQ群聊机器人,同时包含其他一些实用的小功能,基于nonebot2和go-cqhttp实现。
(SeaBot_ QQ,SeaBot_ QQ is a QQ group chat robot oriented towards news and information direction, which also includes some other practical small functions and is implemented based on nonebot2 and go cqhttp.)

文件列表:
.env.dev (458, 2023-03-29)
.env.prod (459, 2023-03-29)
Dockerfile (235, 2023-03-29)
LICENSE (35149, 2023-03-29)
bot.py (304, 2023-03-29)
deploy (0, 2023-03-29)
deploy\.env.prod (459, 2023-03-29)
deploy\docker-compose.yml (566, 2023-03-29)
deploy\go-cqhttp (0, 2023-03-29)
deploy\go-cqhttp\config.yml (3786, 2023-03-29)
deploy\plugins.json (116, 2023-03-29)
deploy\seabot (0, 2023-03-29)
deploy\seabot\plugins (0, 2023-03-29)
deploy\seabot\plugins\hot_news (0, 2023-03-29)
deploy\seabot\plugins\hot_news\config.py (1258, 2023-03-29)
deploy\seabot\plugins\leetcode_daily (0, 2023-03-29)
deploy\seabot\plugins\leetcode_daily\config.py (322, 2023-03-29)
deploy\seabot\plugins\one_saying (0, 2023-03-29)
deploy\seabot\plugins\one_saying\config.py (313, 2023-03-29)
deploy\seabot\plugins\timed_reminder (0, 2023-03-29)
deploy\seabot\plugins\timed_reminder\config.py (438, 2023-03-29)
docker-compose.yml (539, 2023-03-29)
example (0, 2023-03-29)
example\cctvnews.jpg (35064, 2023-03-29)
example\github_reposity_thumbnail.jpg (48395, 2023-03-29)
example\leetcode_daily.jpg (44662, 2023-03-29)
example\tonghuashun.jpg (56801, 2023-03-29)
example\weibo.jpg (28878, 2023-03-29)
example\yiyan.jpg (20629, 2023-03-29)
example\zhihu.jpg (64615, 2023-03-29)
go-cqhttp (0, 2023-03-29)
go-cqhttp\config.yml (3786, 2023-03-29)
plugins.json (116, 2023-03-29)
requirements.txt (92, 2023-03-29)
... ...

# SeaBot_QQ ![data](https://socialify.git.ci/B1ue1nWh1te/SeaBot_QQ/image?description=1&font=Rokkitt&forks=1&issues=1&language=1&logo=https%3A%2F%2Fimg.seaeye.cn%2Fimg%2Fseaeye%2Flogo.png&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Light) SeaBot_QQ 是一个面向新闻资讯方向的 QQ 群聊机器人,同时包含其他一些实用的小功能 [![Lisence](https://img.shields.io/github/license/B1ue1nWh1te/SeaBot_QQ)](https://github.com/B1ue1nWh1te/SeaBot_QQ/blob/main/LICENSE) [![Release](https://img.shields.io/github/v/release/B1ue1nWh1te/SeaBot_QQ?include_prereleases)](https://github.com/B1ue1nWh1te/SeaBot_QQ/releases/) [![Python Version](https://img.shields.io/badge/python-3.9+-blue)](https://www.python.org/) [![NoneBot2](https://img.shields.io/badge/nonebot2-red)](https://github.com/nonebot/nonebot2) [![go-cqhttp](https://img.shields.io/badge/gocqhttp-purple)](https://github.com/Mrs4s/go-cqhttp) [![Visitors](https://visitor-badge.glitch.me/badge?page_id=B1ue1nWh1te-SeaBot_QQ&left_color=gray&right_color=orange)](https://github.com/B1ue1nWh1te/SeaBot_QQ)
# 前言 此项目作为个人日常使用,由于只在自己的班群里使用,所以功能不是很多,若有不足的地方请提出。 # 功能列表 - [x] [定时提醒](seabot/plugins/timed_reminder) - [x] [Github 仓库摘要图](seabot/plugins/github_reposity_thumbnail) - [x] [Leetcode 每日一题](seabot/plugins/leetcode_daily) - [x] [微博热搜](seabot/plugins/hot_news) - [x] [知乎热榜](seabot/plugins/hot_news) - [x] [央视要闻](seabot/plugins/hot_news) - [x] [同花顺快讯](seabot/plugins/hot_news) - [x] [一言](seabot/plugins/one_saying) # 部署方法 ## 容器化部署 在 Linux 服务器上部署,首先安装 docker 和 docker-compose: ```shell # 一键安装docker curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun # 查看docker版本 docker -v # 设置开机启动 systemctl enable docker # 启动 systemctl start docker # 安装docker-compose pip3 install docker-compose # 查看docker-compose版本 docker-compose --version ``` 之后克隆本仓库: ```shell # 克隆本仓库 git clone https://github.com/B1ue1nWh1te/SeaBot_QQ # 切换至仓库目录 cd SeaBot_QQ ``` 然后按自己的需求修改`seabot/plugins`中各个功能插件的`config.py`中的配置参数。 再修改 `./go-cqhttp` 中的 `config.yml` 配置文件,一般情况下,在 `account-uin` 字段中填写机器人的 QQ 号即可,如遇到特殊情况如无法登录,可以尝试将到[go-cqhttp](https://github.com/Mrs4s/go-cqhttp)仓库下载最新的`Windows`版本`exe`文件至本地,填写好配置后先在本地登录机器人账号,获取到`device.json`和`session.token`文件后再上传至服务器使用。 最后修改 `./` 中的 `.env.prod` 配置文件,一般情况下,修改机器人昵称和超级管理员账户即可。 也可以直接按照[deploy](deploy/)文件夹进行修改配置和启动容器。 配置修改完成后,在 `SeaBot_QQ` 目录下打开终端,执行如下命令一键启动容器。 ```shell # 一键启动容器 docker-compose up -d ``` 等待容器自动部署即可。 ```shell # 查看go-cqhttp容器控制台输出 docker logs -f go-cqhttp # 查看seabot_qq容器控制台输出 docker logs -f seabot_qq ``` 如果日志输出正常则表明机器人运行成功。 # 文档 如果在使用过程中遇到问题可以提[issue](https://github.com/B1ue1nWh1te/SeaBot_QQ/issues),或者查阅以下官方文档。 - [nonebot2 官方文档](https://v2.nonebot.dev/guide/) - [go-cqhttp 官方文档](https://docs.go-cqhttp.org/guide/) # 功能调用示例 图片中的内容是通过 API 获取的外部信息,仅作功能展示示例。 我们假设机器人昵称为 `千机` 。 > Github 仓库摘要 | `直接发送仓库链接到群内即可` ![Github 仓库摘要](example/github_reposity_thumbnail.jpg)
> 力扣每日一题 | `千机-每日算法` ![力扣每日一题示例](example/leetcode_daily.jpg)
> 微博热搜 | `千机-微博` ![微博热搜示例](example/weibo.jpg)
> 知乎热榜 | `千机-知乎` ![知乎热榜示例1](example/zhihu.jpg)
> 央视要闻 | `千机-新闻` ![央视要闻示例](example/cctvnews.jpg)
> 同花顺快讯 | `千机-同花顺快讯` ![同花顺快讯示例](example/tonghuashun.jpg)
> 一言 | `千机-一言` ![一言示例](example/yiyan.jpg)
# 开源许可 本项目使用 [GPL-3.0](https://choosealicense.com/licenses/gpl-3.0/) 作为开源许可证。

近期下载者

相关文件


收藏者