一个基于Nonebot2和go-cqhttp的娱乐性qq机器人

Related tags

Text Data & NLPtakker
Overview

Time

Codeac

maven maven maven

State-of-the-art Shitcode

Takker - 一个普通的QQ机器人


此项目为基于 Nonebot2 和 go-cqhttp 开发,以 Sqlite 作为数据库的QQ群娱乐机器人

关于

纯兴趣开发,部分功能借鉴了大佬们的代码,作为Q群的娱乐+功能性Bot

声明

此项目仅用于学习交流,请勿用于非法用途 这是开发者的第一个Python项目,请不要苛求语法的规范性 开发者还是高中生,所以受限于学业,开发时间有限,开学后会放缓更新进度

帮助

部署教程

功能列表

已实现的功能

已实现的常用功能

  • 每日一签
  • pixiv美图/色图 (常用(大嘘
  • 缩写查询
  • 群内消息总结(每月/每年)
  • 一言
  • 插件调用统计
  • xp统计
  • 傲娇钉宫语音包
  • pixiv图片上传
  • 萝卜子语音包!(厨力++)
  • 星座运势
  • 天气 (基于nonebot-plugin-heweather插件修改)
  • 鲁迅说 (抄的zhenxun_bot)

已实现的管理员功能

已实现的超级用户功能

  • 添加/删除管理(实际上就是设置用户权限)
  • 修改群权限
  • 多群公告

超级用户的被动技能

  • 好友请求转发给主人处理
  • 超级用户发送多群联合公告后通知主人
  • pixiv图片上传由主人审核级别

已实现的被动技能

  • 被超级用户拉入群聊自动通过
  • 复读
  • 问(智障回复)
  • B站视频解析 (基于ABot-Graia的插件修改而来)

已实现的隐藏技能!

  • 检测恶意触发命令(将被次高权限ban掉5分钟,只有最高权限(9&10级)可以进行unban)
  • 群权限系统

功能具体指令

功能具体指令说明

常用功能

参数范例: [必填参数] <可选参数>

功能 指令 说明 权限
每日一签 签到/luck/抽签/运势 发送后返回一张图片,包含随机acg美图、日期、今日运势 1
权限系统 perm get
perm set [权限等级]
获取当前对话的权限等级
设置当前会话的权限等级
>权限等级
pixiv美图/色图 pix <关键词1> <关键词n> <-l NSFW等级> 获得一张pixiv的美图、图片信息和图片的高清链接! 6
以问开头的语句自动触发 匹配句中的x不x,多少,多久,什么时候,谁 进行人工智障的回答 1
缩写查询 好好说话 [缩写] 返回查询到的可能代表的内容(接口magiconch 2
群内消息总结 本群月内总结/本群年内总结 效果见功能展示 消息记录权限 1
调用生成总结权限 群管理员+超级用户
复读 相同的三条消息后自动触发 ?这都需要说明吗 2
一言 .h <类型> a 动画 b 文学 c 影视 d 诗词 e 哲学 f 网易云 1
亲亲GIF 亲@目标 生成一张狂亲的GIF 2
摸头GIF 摸@目标 生成一张摸头的GIF 2
点歌 点歌 歌名 顾名思义 2
插件调用统计 插件调用统计 生成一张统计图片 2
xp统计 xp统计 生成一张统计图片,数据源为illust插件搜索的关键词 2
钉宫语音包 傲娇 发送一条钉宫的语音和对应的中文翻译 3
pix图片上传 pixupload [pid] 将该uid对应的图片交由主人审核并选择是否添加到图库中 6
萝卜子语音包 @机器人 [话] 随机的一句亚托莉的语音包 3
星座运势 .sluck <要绑定的星座> 获取绑定的星座的今日运势数据 1
天气 天气 <指定城市> 返回指定城市的天气信息 2
鲁迅说 鲁迅说,内容 生成一张鲁迅说的草图 3
B站视频解析 BV av b23.tv 生成解析图片 3

管理员功能

功能 指令 说明 权限
插件管理器 pm list/ban/unban pm list获取当前会话插件列表
pm ban/unban [插件1] <插件x> 禁用/启用当前会话的指定插件
群管+超级用户
撤回Bot消息 回复Bot消息 撤回 让Bot撤回自己发过的指定消息 群管+超级用户
Bili_sub 见文档(目前还没写) 订阅b站主播的直播&动态 群管+超级用户

超级用户功能

功能 指令 说明 权限
多群联合公告 notice [群1 群2] -n [公告内容] 以1-2秒的随机间隔依次向指定群聊发送一条公告,公告内容暂不支持换行 9
权限系统 perm list
perm set [权限等级] <-g 群号>/<-u qq号>
获取加入的所有群聊的权限等级
设置指定群聊/用户的权限等级
超级用户

部分功能展示

功能实例展示

群内消息总结词云

配置文件注解

各配置文件说明

./configs/config.py

# 身份名单
OWNER: str = ""  # 主人
SUPERUSERS: List[str] = ["0", "", ""]  # 超级用户名单

# 各个API的配置
ALAPI_TOKEN: str = ""  # ALAPI
NETEASE_API: str = "nemapi.windis.xyz"  # NodeJS版本的网易云音乐API的地址
PIXIV_IMAGE_URL: str = "pixiv.windis.xyz"  # 反代i.pximg.net的网址
ALI_API_TOKEN: str = ""  # 阿里云市场API的APPcode
WEATHER_API_KEY: str = ""  # 和风天气API key

# 各种限制
MAX_PROCESS_TIME: int = 30  # 部分指令处理最大等待时间,单位秒,在此期间用户不能再次发起相同指令
BAN_CHEKC_FREQ: int = 5  # 恶意触发命令检测阈值
BAN_CHECK_PERIOD: int = 3  # 恶意触发命令检测时间
BAN_TIME: int = 5  # 恶意触发命令后的封禁时间,单位分钟

# 隐藏插件列表
HIDDEN_PLUGINS: List[str] = [
    "nonebot_plugin_apscheduler",
    "nonebot_plugin_test",
    "hook",
    "invite_check",
    "withdraw",
]

WEATHER_DEFAULT: str = ""  # 天气插件默认城市/区

./configs/path_config.py

# 图片路径
IMAGE_PATH = Path("resources/img/")
# 音频路径
VOICE_PATH = Path("resources/voice/")
# 文本路径
TEXT_PATH = Path("resources/text/")
# 模板路径
TEMPLATE_PATH = Path("resources/templates")
# 字体路径
FONT_PATH = Path("resources/fonts/")
# 日志路径
LOG_PATH = Path("log/")
# 数据路径
DATA_PATH = Path("data/")
# 临时图片路径
TEMP_PATH = Path("resources/img/temp/")

更新记录

更新记录

2021/8/31

  • 添加功能-天气

2021/8/30

  • 这应该是开学前最后一个更新了
  • 添加功能-星座运势

2021/8/27

  • 签到添加了新的一个模板

2021/8/26

  • 添加了部署指南
  • 签到的图片模板改为自适应高度
  • 解决了签到的图片拉伸问题

2021/8/24

  • 添加功能-亚托莉语音包(目前基于文本相似度匹配)

2021/8/23

  • Pixiv美图添加功能-多关键词搜索
  • Pixiv美图添加功能-pid直接向P站搜索
  • 添加功能-撤回指定消息

2021/8/22

  • 修复部分指令间冲突的BUG
  • 添加插件调用统计替代指令
  • 修复插件调用统计统计未启用插件
  • 添加功能-上传p站图片到图库
  • 添加功能-钉宫语音包
  • 修复了加群审核的报错(只要try except了就不叫报错

2021/8/21

  • 修复每日签到积分bug
  • 修复部分插件权限问题
  • 添加了钉宫语音包功能
  • 修复插件管理器获取权限报错的问题
  • 修复了私聊bot设置自己权限时报错无反馈的问题
  • 修复了xp统计全部渲染的Bug
  • 修复了插件调用统计的Bug

2021/8/20

  • 修复一些优先级的bug
  • 加入插件统计
  • 加入xp统计
  • 修复一些绘图BUG
  • 加入所有环境下都关闭重载
  • 修复不知道哪些BUG
  • 修改pixiv美图发送的图片质量和链接内容

2021.8.19

  • 修了一整天的服务器,现在bot内部调用的我自建的API都正常了
  • 修复插件管理系统禁用插件时的bug
  • 修复权限和插件管理的-u -g不能同时管理多个会话的bug
  • 修复pixiv美图功能若原画失效导致抛出Exception的bug
  • 修复公告插件无法发送多行公告
  • 更新部分依赖

2021/8/18

  • 点歌、摸头GIF、狂亲GIF
  • Legacy插件重构完成
  • 配置文件更新为空配置,需手动修改

2021/8/17

  • 又是很多神奇的东西
  • Legacy的插件基本要重置完成了

2021/8/16

  • 很多神奇的东西(懒得写了

2021/8/15

  • 智障随机问答

2021/8/14

  • pixiv美图

2021/8/13

  • 加入了多群联合公告插件
  • 在README中对部分功能进行了说明
  • 更新到光速发版的nonebot 2.0.0a15

2021/8/12

  • 加入签到插件(至少能用了(有功能辣!))

2021/7/31

  • 数据库相关服务和模型

2021/7/29

  • 开始重构Takker(指新建文件夹)
  • 重新封装部分API

Todo

  • 群管功能
  • 缓存清理功能
  • docker容器化部署
  • Web管理面板
  • 完善各种功能
  • 提供非侵入式的权限等级管理方式

感谢

Onebot
go-cqhttp
nonebot2
zhenxun_bot
nonebot_plugin_songpicker2
nonebot_plugin_manager
saya_plugin_collection
nonebot_plugin_help
Haruka_bot

Comments
  • python bot.py报错

    python bot.py报错

    Traceback (most recent call last): File "/root/qbot/takker/bot.py", line 1, in import nonebot File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/init.py", line 138, in from .command import CommandSession, CommandGroup File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/command/init.py", line 927, in from nonebot.command.group import CommandGroup File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/command/group.py", line 3, in from nonebot.plugin import on_command File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/plugin/init.py", line 17, in from nonebot.matcher import Matcher File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/matcher.py", line 16, in from nonebot.rule import Rule File "/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/rule.py", line 21, in from nonebot import get_driver ImportError: cannot import name 'get_driver' from partially initialized module 'nonebot' (most likely due to a circular import) (/root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/lib/python3.9/site-packages/nonebot/init.py)

    opened by LuciTc 5
  • 询问,语音无法发送问题

    询问,语音无法发送问题

    这是最后一个问题了QAQ

    12-08 19:33:32 [SUCCESS] nonebot | CQHTTP 1975969493 | [message.group.normal]: Message -2092313627 from 3116556127@[群:814476238] "亚托莉|atri" 12-08 19:33:32 [INFO] nonebot | Event will be handled by <Matcher from atri, type=message, priority=0, temp=True> 12-08 19:33:32 [INFO] nonebot | Matcher <Matcher from atri, type=message, priority=0, temp=True> running complete 12-08 19:33:32 [ERROR] nonebot | Running matcher <Matcher from atri, type=message, priority=0, temp=True> failed. Traceback (most recent call last): File "C:\Users\Administrator\Desktop\takker\bot.py", line 29, in nonebot.run(app="mp_main:app") File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot_init_.py", line 278, in run get_driver().run(host, port, *args, **kwargs) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 256, in run uvicorn.run( File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\uvicorn\main.py", line 447, in run server.run() File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\uvicorn\server.py", line 68, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1890, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\message.py", line 128, in _check_matcher await _run_matcher(Matcher, bot, event, state)

    File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\message.py", line 156, in _run_matcher await matcher.run(bot, event, state) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\matcher.py", line 597, in run await handler(self, bot, event, self.state) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\handler.py", line 64, in call await self.func( File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\matcher.py", line 458, in wrapper await func_handler(matcher, bot, event, state) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\handler.py", line 64, in call await self.func( File "C:\Users\Administrator\Desktop\takker\plugins\atri.py", line 64, in _g await atri.send(record(voice, "atri")) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\matcher.py", line 495, in send return await bot.send(event=event, message=_message, **kwargs) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters\cqhttp\bot.py", line 471, in send return await self.send_msg(**params) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters\cqhttp\bot.py", line 416, in call_api return await super().call_api(api, **data) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters_bot.py", line 172, in call_api raise exception File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters_bot.py", line 155, in call_api result = await self._call_api(api, **data) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters\cqhttp\bot.py", line 363, in _call_api return _handle_api_result(await ResultStore.fetch( File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\adapters\cqhttp\bot.py", line 192, in _handle_api_result raise ActionFailed(**result) nonebot.adapters.cqhttp.exception.ActionFailed: <ActionFailed data=None, echo={'seq': 23}, msg=SEND_MSG_API_ERROR, retcode=100, status=failed, wording=请参考 go-cqhttp 端输出>

    opened by Fahaxikiii 4
  • 运行报错

    运行报错

    C:\Users\Administrator\Desktop\takker-master>poetry run bot.py

    OSError

    [WinError 193] %1 不是有效的 Win32 应用程序。

    at c:\users\administrator\appdata\local\programs\python\python39\lib\subproces s.py:1416 in _execute_child 1412│ sys.audit("subprocess.Popen", executable, args, cwd, en v) 1413│ 1414│ # Start the process 1415│ try: → 1416│ hp, ht, pid, tid = _winapi.CreateProcess(executabl e, args, 1417│ # no special security 1418│ None, None, 1419│ int(not close_fds), 1420│ creationflags,

    C:\Users\Administrator\Desktop\takker-master>

    opened by Fahaxikiii 4
  • 无法找到指定的模块

    无法找到指定的模块

    07-23 23:21:25 [ERROR] nonebot | Failed to import "bili_sub" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\bot\takker\bot.py", line 22, in nonebot.load_plugins("plugins") File "C:\Users\Administrator\Desktop\bot\takker.venv\lib\site-packages\nonebot\plugin_init_.py", line 997, in loa _plugins result = context.run(_load_plugin, manager, plugin_name)

    File "C:\Users\Administrator\Desktop\bot\takker.venv\lib\site-packages\nonebot\plugin_init_.py", line 945, in lo d_plugin module = manager.load_plugin(plugin_name) File "C:\Users\Administrator\Desktop\bot\takker.venv\lib\site-packages\nonebot\plugin\manager.py", line 161, in load plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_m dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in load_unlocked File "C:\Users\Administrator\Desktop\bot\takker.venv\lib\site-packages\nonebot\plugin\manager.py", line 267, in exec module super().exec_module(module) File "", line 850, in exec_module File "", line 228, in call_with_frames_removed File "C:\Users\Administrator\Desktop\bot\takker\plugins\bili_sub_init.py", line 11, in from utils.img_util import create_image_from_text File "C:\Users\Administrator\Desktop\bot\takker\utils\img_util.py", line 7, in import cv2 File "C:\Users\Administrator\Desktop\bot\takker.venv\lib\site-packages\cv2_init.py", line 5, in from .cv2 import * ImportError: DLL load failed while importing cv2: 找不到指定的模块。

    opened by Nthing734 3
  • 星座运势查询报错

    星座运势查询报错

    12-09 17:38:52 [SUCCESS] nonebot | CQHTTP 1975969493 | [message.group.normal]: Message -2038913020 from 3116556127@[群:681688017] "sluck" 12-09 17:38:52 [INFO] nonebot | Event will be handled by <Matcher from starluck, type=message, priority=20, temp=False> 12-09 17:38:52 [INFO] nonebot | Matcher <Matcher from starluck, type=message, priority=20, temp=False> running complete 12-09 17:38:52 [ERROR] nonebot | Running matcher <Matcher from starluck, type=message, priority=20, temp=False> failed. Traceback (most recent call last): File "C:\Users\Administrator\Desktop\takker\bot.py", line 29, in nonebot.run(app="mp_main:app") File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot_init_.py", line 278, in run get_driver().run(host, port, *args, **kwargs) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 256, in run uvicorn.run( File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\uvicorn\main.py", line 447, in run server.run() File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\uvicorn\server.py", line 68, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1890, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\message.py", line 128, in _check_matcher await _run_matcher(Matcher, bot, event, state)

    File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\message.py", line 156, in run_matcher await matcher.run(bot, event, state) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\matcher.py", line 597, in run await handler(self, bot, event, self.state) File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\nonebot\handler.py", line 64, in call await self.func( File "C:\Users\Administrator\Desktop\takker\plugins\starluck.py", line 111, in handle_starluck_receive await make_cache(stars, stars_cn) File "C:\Users\Administrator\Desktop\takker\plugins\starluck.py", line 223, in make_cache resp_body = (await get_data(stars[i]))["204017771"]["day"] File "C:\Users\Administrator\Desktop\takker\plugins\starluck.py", line 147, in get_data return response.json() File "C:\Users\Administrator\Desktop\takker.venv\lib\site-packages\httpx_models.py", line 1514, in json return jsonlib.loads(self.text, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\json_init.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    opened by Fahaxikiii 2
  • 询问,超级用户名单应该怎么填写

    询问,超级用户名单应该怎么填写

    SUPERUSERS: List[Union[int, str]] = ["12345678", "0", "0", 3116556127]
    群聊发送perm list一直回复参数错误 example: SUPERUSERS: List[Union[int, str]] = ["12345678", "0", "0", 12345678] # 超级用户名单

    opened by Fahaxikiii 2
  • 安装依赖时报错是怎么回事,操作系统是Windows Server 2012 R2

    安装依赖时报错是怎么回事,操作系统是Windows Server 2012 R2

    C:\Users\Administrator\Desktop\takker-master>poetry install --no-dev Installing dependencies from lock file

    Package operations: 2 installs, 0 updates, 0 removals

    ? Installing opencv-python (4.5.4.58) ? Installing wordcloud (1.8.1)

    RuntimeError

    Invalid hashes (sha256:7651f5e88ba794b20bcf1c030d8de440929f9a65e1d498fb4006cee 8c58fb7e5) for opencv-python (4.5.4.58) using archive opencv_python-4.5.4.58-cp3 9-cp39-win_amd64.whl. Expected one of sha256:02872e0a9358526646d691f390143e9c211 09c210095314abaa0641211cda077, sha256:085c5fcf5a6479c34aca3fd0f59055e704083d6a44 009d6583c675ff1a5a0625, sha256:0d6249a49122a78afc6685ddb1377a87e46414ae61c84535c 4c6024397f1f3e8, sha256:0eba0bfe62c48a02a5af3a0944e872c99f57f98653bed14d51c6991a 58f9e1d1, sha256:215bdf069847d4e3b0447a34e9eb4046dd4ca523d41fe4381c1c55f6704fd0d c, sha256:22bcc3153a7d4f95aff79457eef81ef5e40ab1851b189e014412b5e9fbee2573, sha2 56:26feeeb280de179f5dbb8976ebf7ceb836bd263973cb5daec8ca36e8ef7b5773, sha256:2fff 48a641a74d1def31c1e88f9e5ce50ba4d0f87d085dfbf8bc844e12f6cd54, sha256:315c357522b 6310ef7a0718d9f0c5d3110e59c19140705499a3c29bdd8c0124f, sha256:48288428f407bacba5 f73d460feb4a1ecafe87db3d7cfc0730a49fb32f589bbf, sha256:4a13381bdfc0fb4b080efcc27 c46561d0bd752f126226e9f19aa9cbcf6677f40, sha256:4abe9c4fb6fe16daa9fcdd68b5357d35 30431341aa655203f8e84f394e1fe6d4, sha256:4b614fbd81aeda53ce28e645aaee18fda7c7f2a 48eb7f1a70a7c6c3427946342, sha256:5370a11757fbe94b176771269aff599f4da8676c2a672b 13bcbca043f2e3eea8, sha256:637f4d3ad81bd27f273ede4c5fa6c26afb85c097c9715baf107cc 270e37f5fea, sha256:69a78e40a374ac14e4bf15a13dbb6c30fd2fbd5fcd3674d020a31b88861d 5aaf, sha256:6b87bab220d17e03eeedbcc6652d9d7e7bb09886dbd0f810310697a948b4c6fd, s ha256:887a61097092dc0bf23fa24646dbc8cfeeb753649cb28a3782a93a6879e3b7d2, sha256:8 ddf4dcd8199209e33f21deb0c6d8ab62b21802816bba895fefc346b6d2e522d, sha256:8f7886ac abaebf0361bd3dbccaa0d08e3f65ab13b7c739eb11e028f01ad13582, sha256:92e9b2261ec7642 29c948d77fe0d922ee033348ca6519939b87861016c1614b3, sha256:9998ce60884f3cda074f02 b56d2b57ee6bd863e2ddba132da2b0af3b9487d584, sha256:9b2c198af083a693d42a82bddc4d1 f7e6bb02c64192ff7fac1fd1d43a8cf1be6, sha256:9bcca50c5444b5cfb01624666b69f91ba8f2 d2bf4ef37b111697aafdeb81c99f, sha256:a2a7f09b8843b85f3e1b02c5ea3ddc0cb9f5ad96983 80109b37069ee8db7746d, sha256:ac852fcaac93439f2f7116ddffdc23fd366c872200ade22724 46f9898180cecb, sha256:bc34cdbfbab463750713118c8259a5d364547adab8ed91e94ba888349 f33590a, sha256:c44f5c51e92322ed832607204249c190764dec6cf29e8ba6d679b10326be1c1b , sha256:d4b1d0b98ee72ba5dd720166790fc93ce459281e138ee79b0d41420b3da52b2e, sha25 6:eaa144013b597e4dcabc8d8230edfe810319de01b5609556d415a20e2b707547.

    at c:\users\administrator\appdata\local\programs\python\python39\lib\site-pack ages\poetry\installation\executor.py:627 in _download_link

    EnvCommandError

    Command C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\takker -reborn-LDKRhFMo-py3.9\Scripts\pip.exe install --no-deps file:///C:/Users/Admini strator/AppData/Local/pypoetry/Cache/artifacts/f4/27/cf/a52e6185703aea1a019cc582 979fa2285190b8ea18928a99f6500cd2e1/wordcloud-1.8.1.tar.gz errored with the follo wing return code 1, and output: Processing c:\users\administrator\appdata\local\pypoetry\cache\artifacts\f4\27 \cf\a52e6185703aea1a019cc582979fa2285190b8ea18928a99f6500cd2e1\wordcloud-1.8.1.t ar.gz Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: wordcloud Building wheel for wordcloud (setup.py): started Building wheel for wordcloud (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\t akker-reborn-LDKRhFMo-py3.9\Scripts\python.exe' -u -c 'import io, os, sys, setup tools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Te mp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Administr ator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"';f = getattr (tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.S tringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace ('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec' "'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\1\pip-wheel-m5 afk0pk' cwd: C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build-50w265pt
    Complete output (20 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud_version.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud_init_.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud_main_.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1' running build_ext building 'wordcloud.query_integral_image' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micros oft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

    ----------------------------------------
    ERROR: Failed building wheel for wordcloud
    Running setup.py clean for wordcloud
    

    Failed to build wordcloud Installing collected packages: wordcloud Running setup.py install for wordcloud: started Running setup.py install for wordcloud: finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs \takker-reborn-LDKRhFMo-py3.9\Scripts\python.exe' -u -c 'import io, os, sys, set uptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\ Temp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Adminis trator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"';f = getat tr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io .StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().repla ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exe c'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\1\pip-reco rd-4fb5qbs5\install-record.txt' --single-version-externally-managed --compile -- install-headers 'C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs \takker-reborn-LDKRhFMo-py3.9\include\site\python3.9\wordcloud' cwd: C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build-50w265 pt
    Complete output (22 lines): running install C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\takker-reb orn-LDKRhFMo-py3.9\lib\site-packages\setuptools\command\install.py:34: Setuptool sDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud

      copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\_version.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\__init__.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\__main__.py -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud
      copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud
      UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py
      set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1'
      running build_ext
      building 'wordcloud.query_integral_image' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micr
    

    osoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tool s/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\Administrator\AppData \Local\pypoetry\Cache\virtualenvs\takker-reborn-LDKRhFMo-py3.9\Scripts\python.ex e' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users \Administrator\AppData\Local\Temp\1\pip-req-build-50w265pt\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\1\pip-req-build- 50w265pt\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; se tup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec (compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Administra tor\AppData\Local\Temp\1\pip-record-4fb5qbs5\install-record.txt' --single-versio n-externally-managed --compile --install-headers 'C:\Users\Administrator\AppData \Local\pypoetry\Cache\virtualenvs\takker-reborn-LDKRhFMo-py3.9\include\site\pyth on3.9\wordcloud' Check the logs for full command output.

    at c:\users\administrator\appdata\local\programs\python\python39\lib\site-pack ages\poetry\utils\env.py:1183 in run 1179│ output = subprocess.check_output( 1180│ cmd, stderr=subprocess.STDOUT, **kwargs 1181│ ) 1182│ except CalledProcessError as e: → 1183│ raise EnvCommandError(e, input=input) 1184│ 1185│ return decode(output) 1186│ 1187│ def execute(self, bin, *args, **kwargs):

    C:\Users\Administrator\Desktop\takker-master>

    opened by Fahaxikiii 2
  • 启动出错

    启动出错

    [email protected]:/www/wwwroot/takker-1.3.0# poetry run python bot.py 02-27 16:32:57 [INFO] utils | 已禁用uvicorn自动重载 Traceback (most recent call last): File "bot.py", line 5, in from service.init import init_bot_startup, update_plugin_list File "/www/wwwroot/takker-1.3.0/service/init.py", line 5, in from service.db.db_connect import db_init File "/www/wwwroot/takker-1.3.0/service/db/db_connect.py", line 8, in models: list[str] = [ TypeError: 'type' object is not subscriptable [email protected]:/www/wwwroot/takker-1.3.0#

    opened by Fahaxikiii 1
  • 虚拟环境并启动Bot出错

    虚拟环境并启动Bot出错

    在tmux用了python -m poetry shell后出现错误。 Spawning shell within /root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9 [email protected]:~/qbot/takker# . /root/.cache/pypoetry/virtualenvs/takker-reborn-NcqX0U7w-py3.9/bin/activate 并且后面命令行前面带有(takker-reborn-NcqX0U7w-py3.9)。

    opened by LuciTc 1
  • Configuration for Codeac.io

    Configuration for Codeac.io

    Hey @FYWinds

    I briefly looked up your repo and saw a good amount of work over here. Good job! 🥇

    You recently also tried Codeac.io and you probably haven't had the best experience just because of lack of correct configuration. It's caused by showing a lot of false positives at Codeac.io.

    Storing external dependencies or generated files is usually not the best practice. It's better to generate/download them dynamically in your Continuous Integration pipeline. So I added the .eslintignore file which solves this problem and skips the analyses at the folders listed there.

    Let me know if you need any more help.

    Jiri Tichy Business Developer @Codeac.io

    PS: Keep doing open-source, please! We all appreciate your work a lot! :)

    opened by jiritichy 0
  • 关于工具文件夹 utils 下 text_util.py 中 cut_text() 函数的 bug

    关于工具文件夹 utils 下 text_util.py 中 cut_text() 函数的 bug

    关于工具文件夹 utilstext_util.pycut_text() 函数的 bug

    问题描述

    cut_text() 函数在 bilibili 链接解析 cut 简介时概率触发:报错 index out of range,尝试修复(见 复现及修复 部分)后结果不美观

    报错信息

    Line 131: 
        if p[-1] == "\n":
    IndexError: string index out of range
    

    复现及修复

    import string
    
    # 源于 utils/text_util.py
    def cut_text(str, cut):
        """
        :说明: `get_cut_str`
        > 长文本自动换行切分
    
        :参数:
          * `str: [type]`: 文本
          * `cut: [type]`: 换行宽度,需要至少大于20
    
        :返回:
          - `List`: 切分后的文本列表
        """
        punc = """,,、。.??)》】“"‘';;::!!·`~%^& """
        si = 0
        i = 0
        next_str = str
        str_list = []
        for s in next_str:
            if s in string.printable:
                si += 1
            else:
                si += 2
            i += 1
            if next_str[0] == "\n":
                next_str = next_str[1:]
            elif s == "\n":
                str_list.append(next_str[: i - 1])
                next_str = next_str[i - 1 :]
                si = 0
                i = 0
                continue
            if si > cut:
                try:
                    if next_str[i] in punc:
                        i += 1
                    if next_str[i] in string.ascii_letters:
                        for j in range(i, i - 18, -1):
                            if next_str[j] == " ":
                                i = j + 1
                                break
                except IndexError:
                    str_list.append(next_str)
                    return str_list
                str_list.append(next_str[:i])
                next_str = next_str[i:]
                si = 0
                i = 0
        str_list.append(next_str)
        i = 0
        non_wrap_str = []
        for p in str_list:
            # FIXME 原文件: index out of range
            # ----------------------------
            # if p[-1] == "\n":
            #     p = p[:-1]
            # ----------------------------
            # 修改后: 不会 index out of range 但效果不美观
            # ----------------------------
            if p.endswith("\n"):
                p = p[:-1]
            # ----------------------------
            non_wrap_str.append(p)
            i += 1
        return non_wrap_str
    
    # 出问题的字符串
    src = """https://youtu.be/m_RqjvVvvfA
    💗🎃💗※イヤホンで聴くと左右動いて、とっても楽しくてオススメです。💗🎃💗
    
    「ヒトよ、一夜に一目惚レ!?」
    
    新曲完成しました。
    ゾクゾクしたいそんな夜にどうぞ…
    
    テーマは『信じてる』
    イラストは田ゃむさん。イラスト最高なのでフォローするように。
    
    もしよかったらコメント、チャンネル登録♪
    「なんねぇコレ!?」と思ったら低評価ボタン🥰お待ちしてます。
    
    映像・音楽:みつあくま https://twitter.com/mitsu_akuma
    イラスト:田ゃむ https://twitter.com/tanabe0607
    https://twitter.com/tanabe0607/status...
    終わりペンギン:もずくず https://twitter.com/mzkzmm
    
    
    プロセカNEXT応募曲です。ニーゴ好きでスマンな🥺
    第9回プロセカNEXT応募楽曲
    
    コミュニティも最近、お世辞抜きに賑わいつつ更新中😍(国籍言語問わず絡んでね)
    https://www.youtube.com/channel/UCtne...
    
    ジャンル:HYPER J-POP
    #初音ミク #プロセカNEXT #みつあくま
    サブテーマは処女懐胎 (Virgin birth)
    
    
    Hey, rumors I heard recently
    I feel so sad that I feel like I'm going to vomit
    Day By Day, Mirror with bloody cracks
    The girl was crouching and laughing at the front door
    
    I put up with the pain
    I'm used to the liquid with a bitter taste
    I would be confused without you
    Hey you? I will be a girl who is convenient for you...
    
    Love...
    
    Evidence destruction, girl innocence
    Please keep it secret from mom
    The bruise has disappeared, but the life (body) remains dirty
    Are you ready? not yet
    Crack in the heart It's just strange
    Macaroons that are hard and cannot be chewed
    Where should I hide it? I can't rely on anyone
    Are you ready? that's enough
    
    Common worries
    Waste money Temporary illness
    Give up and light a lighter
    
    Hey, that child with the nickname "bye fungus"
    Bye-bye, missing from Friday
    The hair quality was terrible
    Is it fate that both parents and children cry in the locker?
    
    Prohibition of unexplained use
    Irresponsible and precious warmth
    There were a lot of talisman stuck in the locker
    Hey, Don't be silly
    
    (At first glance!?)
    
    Evidence destruction, display of girl
    Without knowing mom
    Spinning from pleasure
    Innocently frozen finger
    Hey good?
    It's okay today
    
    Feelings are anemic, bleeding ^^
    Junk Kagura Karma
    Who should I go to?
    I can't tell anyone
    I'm done ...
    that's enough"""
    
    # 此行源于 plugins/bili_resolve.py (line 130 in `binfo_image_create()` function)
    # dynamic_cut_str = "\n".join(cut_text(dynamic, 58))
    
    # 问题复现
    items = cut_text(src, 58)
    for item in items:
        # 文本 cut 后 
        print(item)
    

    运行结果

    https://youtu.be/m_RqjvVvvfA
    💗🎃💗※イヤホンで聴くと左右動いて、とっても楽しくてオススメ
    です。💗🎃💗
    「ヒトよ、一夜に一目惚レ!?」
    新曲完成しました。
    ゾクゾクしたいそんな夜にどうぞ…
    テーマは『信じてる』
    イラストは田ゃむさん。イラスト最高なのでフォローするように。
    もしよかったらコメント、チャンネル登録♪
    「
    なんねぇコレ!?」と思ったら低評価ボタン🥰お待ちしてます。
    映
    像・音楽:みつあくま https://twitter.com/mitsu_akuma
    イラスト:田ゃむ https://twitter.com/tanabe0607
    https://twitter.com/tanabe0607/status...
    終わりペンギン:もずくず https://twitter.com/mzkzmm
    プロセカNEXT応募曲です。ニーゴ好きでスマンな🥺
    第
    9回プロセカNEXT応募楽曲
    コミュニティも最近、お世辞抜きに賑わいつつ更新中😍(国籍言語
    問わず絡んでね)
    https://www.youtube.com/channel/UCtne...
    ジャンル:HYPER J-POP
    #初音ミク #プロセカNEXT #みつあくま
    サブテーマは処女懐胎 (Virgin birth)
    Hey, rumors I heard recently
    I
     feel so sad that I feel like I'm going to vomit
    Day By Day, Mirror with bloody cracks
    The girl was crouching and laughing at the front door
    I put up with the pain
    I'm used to the liquid with a bitter taste
    I would be confused without you
    Hey you? I will be a girl who is convenient for you...
    Love...
    Evidence destruction, girl innocence
    Please keep it secret from mom
    The bruise has disappeared, but the life (body) remains 
    di
    rty
    Are you ready? not
     yet
    Crack in the heart It's just st
    range
    Macaroons that are hard and cannot be 
    chewed
    Where should I hide it? I can't rely on
     anyone
    Are you ready? that'
    
    s enough
    
    Comm
    on worries
    Waste money Tempor
    ary illness
    Give up and lig
    
    ht a lighter
    
    Hey, that child with the nicknam
    e "bye fungus"
    Bye-bye, miss
    ing from Friday
    The hair qual
    ity was terrible
    Is it fate that both parents and children 
    c
    
    ry in the locker?
    
    Prohibition
     of unexplained use
    Irresponsible
     and precious warmth
    There were a lot of talisma
    n stuck in the lock
    
    er
    Hey, Don't be si
    
    lly
    
    (At first glance!?)
    
    Evidence de
    struction, display 
    of girl
    Without knowin
    g mom
    Spinning from plea
    sure
    Inno
    cently frozen f
    
    inger
    Hey good?
    It's okay today
    Feelings are anem
    ic, bleeding ^^
    Jun
    k Kagura Karma
    Who 
    should I go 
    to?
    I can't tell anyone
    I'm done ...
    that's enough
    

    预期结果

    https://youtu.be/m_RqjvVvvfA
    💗🎃💗※イヤホンで聴くと左右動いて、
    とっても楽しくてオススメです。💗🎃💗
    
    「ヒトよ、一夜に一目惚レ!?」
    
    新曲完成しました。
    ゾクゾクしたいそんな夜にどうぞ…
    
    テーマは『信じてる』
    イラストは田ゃむさん。
    イラスト最高なのでフォローするように。
    
    もしよかったらコメント、チャンネル登録♪
    「なんねぇコレ!?」と思ったら低評価ボタン🥰お待ちしてます。
    
    映像・音楽:みつあくま
    https://twitter.com/mitsu_akuma
    イラスト:田ゃむ
    https://twitter.com/tanabe0607
    https://twitter.com/tanabe0607/status...
    終わりペンギン:もずくず
    https://twitter.com/mzkzmm
    
    
    プロセカNEXT応募曲です。ニーゴ好きでスマンな🥺
    第9回プロセカNEXT応募楽曲
    
    コミュニティも最近、お世辞抜きに賑わいつつ更新中😍
    (国籍言語問わず絡んでね)
    https://www.youtube.com/channel/UCtne...
    
    ジャンル:HYPER J-POP
    #初音ミク #プロセカNEXT #みつあくま
    サブテーマは処女懐胎 (Virgin birth)
    
    
    Hey, rumors I heard recently
    I feel so sad that I feel like
    I'm going to vomit Day By Day,
    Mirror with bloody cracks
    The girl was crouching
    and laughing at the front door
    
    I put up with the pain
    I'm used to the liquid with a bitter taste
    I would be confused without you
    Hey you?
    I will be a girl who is convenient for you...
    
    Love...
    
    Evidence destruction, girl innocence
    Please keep it secret from mom
    The bruise has disappeared,
    but the life (body) remains dirty
    Are you ready? not yet
    Crack in the heart It's just strange
    Macaroons that are hard and cannot be chewed
    Where should I hide it?
    I can't rely on anyone
    Are you ready? that's enough
    
    Common worries
    Waste money Temporary illness
    Give up and light a lighter
    
    Hey, that child with the nickname "bye fungus"
    Bye-bye, missing from Friday
    The hair quality was terrible
    Is it fate that both parents
    and children cry in the locker?
    
    Prohibition of unexplained use
    Irresponsible and precious warmth
    There were a lot of talisman stuck in the locker
    Hey, Don't be silly
    
    (At first glance!?)
    
    Evidence destruction, display of girl
    Without knowing mom
    Spinning from pleasure
    Innocently frozen finger
    Hey good?
    It's okay today
    
    Feelings are anemic, bleeding ^^
    Junk Kagura Karma
    Who should I go to?
    I can't tell anyone
    I'm done ...
    that's enough
    
    bug enhancement 
    opened by SChenga 1
  • 天气问题

    天气问题

    有的地区可以,天气北京可以返回照片,天气南京就报错。 FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Administrator\Desktop\takker\resources\img//weather/icon/151.png' 丢失的图片怎么获取?

    bug 
    opened by Fahaxikiii 2
Releases(v1.3.0)
  • v1.3.0(Oct 13, 2021)

  • v1.0.0(Aug 27, 2021)

    第一版Release

    主动功能列表

    • 智障问答
    • 每日签到
    • 缩写查询
    • pixiv美图
    • 一言
    • 群消息总结
    • 插件调用统计
    • xp统计
    • 钉宫语音包
    • 亚托莉语音包
    • 插件管理
    • 权限管理
    • pixiv图片上传
    • 复读
    • 点歌
    • 摸头表情包生成
    • 狂亲表情包生成

    第一版的Release,部署教程已经放在了个人博客上 目前的Bot只能说是有功能,还不能算是让我非常满意 如果使用过程中碰到Bug欢迎提issue和pr

    Source code(tar.gz)
    Source code(zip)
    takker-v1.0.0.zip(108.00 MB)
Korean extractive summarization. 2021 AI 텍스트 요약 온라인 해커톤 화성갈끄니까팀 코드

korean extractive summarization 2021 AI 텍스트 요약 온라인 해커톤 화성갈끄니까팀 코드 Leaderboard Notice Text Summarization with Pretrained Encoders에 나오는 bertsumext모델(ext

3 Aug 10, 2022
LeBenchmark: a reproducible framework for assessing SSL from speech

LeBenchmark: a reproducible framework for assessing SSL from speech

11 Nov 30, 2022
문장단위로 분절된 나무위키 데이터셋. Releases에서 다운로드 받거나, tfds-korean을 통해 다운로드 받으세요.

Namuwiki corpus 문장단위로 미리 분절된 나무위키 코퍼스. 목적이 LM등에서 사용하기 위한 데이터셋이라, 링크/이미지/테이블 등등이 잘려있습니다. 문장 단위 분절은 kss를 활용하였습니다. 라이선스는 나무위키에 명시된 바와 같이 CC BY-NC-SA 2.0

Jeong Ukjae 16 Apr 02, 2022
Espial is an engine for automated organization and discovery of personal knowledge

Live Demo (currently not running, on it) Espial is an engine for automated organization and discovery in knowledge bases. It can be adapted to run wit

Uzay-G 159 Dec 30, 2022
This is a really simple text-to-speech app made with python and tkinter.

Tkinter Text-to-Speech App by Souvik Roy This is a really simple tkinter app which converts the text you have entered into a speech. It is created wit

Souvik Roy 1 Dec 21, 2021
RuCLIP tiny (Russian Contrastive Language–Image Pretraining) is a neural network trained to work with different pairs (images, texts).

RuCLIPtiny Zero-shot image classification model for Russian language RuCLIP tiny (Russian Contrastive Language–Image Pretraining) is a neural network

Shahmatov Arseniy 26 Sep 20, 2022
SEJE is a prototype for the paper Learning Text-Image Joint Embedding for Efficient Cross-Modal Retrieval with Deep Feature Engineering.

SEJE is a prototype for the paper Learning Text-Image Joint Embedding for Efficient Cross-Modal Retrieval with Deep Feature Engineering. Contents Inst

0 Oct 21, 2021
Chinese NER with albert/electra or other bert descendable model (keras)

Chinese NLP (albert/electra with Keras) Named Entity Recognization Project Structure ./ ├── NER │   ├── __init__.py │   ├── log

2 Nov 20, 2022
Random-Word-Generator - Generates meaningful words from dictionary with given no. of letters and words.

Random Word Generator Generates meaningful words from dictionary with given no. of letters and words. This might be useful for generating short links

Mohammed Rabil 1 Jan 01, 2022
天池中药说明书实体识别挑战冠军方案;中文命名实体识别;NER; BERT-CRF & BERT-SPAN & BERT-MRC;Pytorch

天池中药说明书实体识别挑战冠军方案;中文命名实体识别;NER; BERT-CRF & BERT-SPAN & BERT-MRC;Pytorch

zxx飞翔的鱼 751 Dec 30, 2022
Nested Named Entity Recognition for Chinese Biomedical Text

CBio-NAMER CBioNAMER (Nested nAMed Entity Recognition for Chinese Biomedical Text) is our method used in CBLUE (Chinese Biomedical Language Understand

8 Dec 25, 2022
English loanwords in the world's languages

Wiktionary as CLDF Content cldf1 and cldf2 contain cldf-conform data sets with a total of 2 377 756 entries about the vocabulary of all 1403 languages

Viktor Martinović 3 Jan 14, 2022
Unet-TTS: Improving Unseen Speaker and Style Transfer in One-shot Voice Cloning

Unet-TTS: Improving Unseen Speaker and Style Transfer in One-shot Voice Cloning English | 中文 ❗ Now we provide inferencing code and pre-training models

164 Jan 02, 2023
Chinese Pre-Trained Language Models (CPM-LM) Version-I

CPM-Generate 为了促进中文自然语言处理研究的发展,本项目提供了 CPM-LM (2.6B) 模型的文本生成代码,可用于文本生成的本地测试,并以此为基础进一步研究零次学习/少次学习等场景。[项目首页] [模型下载] [技术报告] 若您想使用CPM-1进行推理,我们建议使用高效推理工具BMI

Tsinghua AI 1.4k Jan 03, 2023
Multi Task Vision and Language

12-in-1: Multi-Task Vision and Language Representation Learning Please cite the following if you use this code. Code and pre-trained models for 12-in-

Meta Research 711 Jan 08, 2023
The ability of computer software to identify words and phrases in spoken language and convert them to human-readable text

speech-recognition-py Speech recognition is the ability of computer software to identify words and phrases in spoken language and convert them to huma

Deepangshi 1 Apr 03, 2022
OpenChat: Opensource chatting framework for generative models

OpenChat is opensource chatting framework for generative models.

Hyunwoong Ko 427 Jan 06, 2023
Twewy-discord-chatbot - Build a Discord AI Chatbot that Speaks like Your Favorite Character

Build a Discord AI Chatbot that Speaks like Your Favorite Character! This is a Discord AI Chatbot that uses the Microsoft DialoGPT conversational mode

Lynn Zheng 231 Dec 30, 2022
Simple text to phones converter for multiple languages

Phonemizer -- foʊnmaɪzɚ The phonemizer allows simple phonemization of words and texts in many languages. Provides both the phonemize command-line tool

CoML 762 Dec 29, 2022
Simple, hackable offline speech to text - using the VOSK-API.

Simple, hackable offline speech to text - using the VOSK-API.

Campbell Barton 844 Jan 07, 2023