This repository has been archived by the owner on Sep 8, 2021. It is now read-only.
simonkimi
/
qqbot-yellow
Public archive
- Notifications
- Fork 2
-
Star 8
simonkimi/qqbot-yellow
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branches Tags
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Latest commitHistory6 Commits | ||||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
Repository files navigation
部署
- 在 腾讯ai开放平台注册账号
- 安装 酷q机器人 推荐使用pro版, pro版可以撤回消息
- 安装 cqhttp插件 可能需要安装 VC++ 2017运行库
- 配置cqhttp, 记录其host和port
- git clone此项目, 根据config文件修改配置
- 使用
python main.py
运行项目
配置说明
bot_host = "127.0.0.1" # 机器人host
bot_port = "8080" # 机器人port
qq_group = [123456, 987654] # 生效群
compress_kb = 500 # 压缩图片大小, 单位为kb
bot_img_file_dir = r"C:\酷Q Pro\data\image" # 酷q机器人接收图片位置, 如图位置
APP_ID = 123456 # 从tx云获取的api
APP_KEY = 'jlKkjKOWtEogd'
# 规则
rules = RuleBuilder()\
.add(RuleBuilder.TAG_NORMAL_HOT_PORN, 90, 100, True, RuleBuilder.Punishment.kick(True))\
.add(RuleBuilder.TAG_NORMAL_HOT_PORN, 80, 89, True, RuleBuilder.Punishment.ban(7*24*60*60))\
.build()
规则说明: 类型 检测最小值 检测最大值 是否撤回 处理方式
RuleBuilder.TAG_NORMAL_HOT_PORN, 90, 100, True, RuleBuilder.Punishment.kick(True)
色情的综合值 满足 90 <= x <= 100 则 撤回消息 踢出本群且不能再申请
RuleBuilder.TAG_NORMAL_HOT_PORN, 80, 89, True, RuleBuilder.Punishment.ban(72460*60)
色情的综合值 满足 80 <= x <= 89 则 撤回消息 进行禁言7天(单位为秒)
注
安装pillow模块可能会报错, 请去 lfd.uci.edu 下载第三方whl直接安装
善用 ctrl+f
About
基于腾讯云的qq群聊图片鉴黄处理
Resources
Readme
License
Activity
Stars
8
stars
Watchers
1
watching
Forks
2
forks
Report repository
Releases
No releases published
Packages 0
No packages published
Contributors 2
Languages
- Python 100.0%