cosmos01 / blue_archive_hoshinobot Goto Github PK
View Code? Open in Web Editor NEWBlue Archive 碧蓝档案(日服\国服\国际服通用)图形化活动日历、模拟抽卡、官推转发、攻略图获取插件, 适用于 HoshinoBot v2.
License: GNU General Public License v3.0
Blue Archive 碧蓝档案(日服\国服\国际服通用)图形化活动日历、模拟抽卡、官推转发、攻略图获取插件, 适用于 HoshinoBot v2.
License: GNU General Public License v3.0
ba查询加入wiki的图片,就是那个技能加点之类的。
有偿请求
[2023-08-03 23:55:59,745 config] WARNING: Not found config of "Blue_Archive_HoshinoBot"
[2023-08-03 23:56:00,194 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.calendar"
[2023-08-03 23:56:00,209 chara] WARNING: bluearchive.chara.Roster: 出现重名hina于id10004与id10004
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名伊织于id10006与id10006
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名真纪于id10007与id10007
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名maki于id10007与id10007
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名xcw于id10010与id10010
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名爱丽丝于id10015与id10015
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名aris于id10015与id10015
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名绿于id10016与id10016
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名梓(泳装)于id10021与id10021
[2023-08-03 23:56:00,210 chara] WARNING: bluearchive.chara.Roster: 出现重名伊织(泳装)于id10023与id10023
[2023-08-03 23:56:00,211 chara] WARNING: bluearchive.chara.Roster: 出现重名千夏(温泉)于id10030与id10030
[2023-08-03 23:56:00,211 chara] WARNING: bluearchive.chara.Roster: 出现重名玛丽娜于id10037与id10037
[2023-08-03 23:56:00,211 chara] WARNING: bluearchive.chara.Roster: 出现重名水富婆于id10044与id10044
[2023-08-03 23:56:00,211 chara] WARNING: bluearchive.chara.Roster: 出现重名千世(泳装)于id10047与id10047
[2023-08-03 23:56:00,212 chara] WARNING: bluearchive.chara.Roster: 出现重名mika于id10059与id10059
[2023-08-03 23:56:00,212 chara] WARNING: bluearchive.chara.Roster: 出现重名时于id10062与id10062
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名茜里于id13002与id13002
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名无月于id13006与id13006
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名优香于id13010与id13010
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名桐乃于id13012与id13012
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名铃美于id16003与id16003
[2023-08-03 23:56:00,213 chara] WARNING: bluearchive.chara.Roster: 出现重名菲娜于id16004与id16004
[2023-08-03 23:56:00,214 chara] WARNING: bluearchive.chara.Roster: 出现重名泉(泳装)于id16006与id16006
[2023-08-03 23:56:00,214 chara] WARNING: bluearchive.chara.Roster: 出现重名响于id20000与id20000
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名初音未来于id20007与id20007
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名亚子于id20008与id20008
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名和香(温泉)于id20010与id20010
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名千寻于id20013与id20013
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名枫于id20015与id20015
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名伊吕波于id20016与id20016
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名ak于id20026与id20026
[2023-08-03 23:56:00,215 chara] WARNING: bluearchive.chara.Roster: 出现重名scw于id20027与id20027
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名爱莉于id23000与id23000
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名绫音于id23005与id23005
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名静子于id23006与id23006
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名玛丽于id23008与id23008
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名绫音(泳装)于id26007与id26007
[2023-08-03 23:56:00,216 chara] WARNING: bluearchive.chara.Roster: 出现重名静子(泳装)于id26008与id26008
[2023-08-03 23:56:00,218 blue_gacha] WARNING: blue_group_pool_config.json not found, will create when needed.
[2023-08-03 23:56:00,218 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.gacha"
[2023-08-03 23:56:00,219 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.raid_img"
[2023-08-03 23:56:00,219 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.student_info"
[2023-08-03 23:56:00,221 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.twitter"
[2023-08-03 23:56:00,221 nonebot] INFO: Succeeded to import "hoshino.modules.Blue_Archive_HoshinoBot.update"
大佬,菜菜,救救,机器人输出输入正常,但是关于本项目的功能都无法使用(
已经使用过更新卡池指令
2022-09-28 16:54:01 INFO Self: 3573362118, Message 2111837974 from ******@[群:******]: 'ba来一井'
[2022-09-28 16:54:01,994 blue_gacha] INFO: Message 2111837974 triggered gacha_200.
2022-09-28 16:54:01 INFO Message 2111837974 triggered gacha_200.
[2022-09-28 16:54:02,303 hoshino] ERROR: 缺少图片资源:./res/img\bluearchive\unit\icon_unit_1000.png
2022-09-28 16:54:02 ERROR 缺少图片资源:./res/img\bluearchive\unit\icon_unit_1000.png
[2022-09-28 16:54:02,313 chara] ERROR: File not found: ./res/img\bluearchive\unit\icon_unit_1000.png
2022-09-28 16:54:02 ERROR File not found: ./res/img\bluearchive\unit\icon_unit_1000.png
[2022-09-28 16:54:02,329 blue_gacha] ERROR: <class 'NameError'> occured when gacha_200 handling message 2111837974.
2022-09-28 16:54:02 ERROR <class 'NameError'> occured when gacha_200 handling message 2111837974.
[2022-09-28 16:54:02,351 blue_gacha] ERROR: name 'unknown_chara_icon' is not defined
Traceback (most recent call last):
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 154, in render_icon
pic = self.icon.open().convert('RGBA').resize((size, size), Image.LANCZOS)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\R.py", line 50, in open
return Image.open(self.path)
File "C:\Users\gao\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 3068, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './res/img\\bluearchive\\unit\\icon_unit_1000.png'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await service_func.func(bot, event)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\service.py", line 228, in wrapper
return await func(bot, event)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\__init__.py", line 167, in gacha_200
pics.append(chara.gen_team_pic(res[i:j], star_slot_verbose=False))
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 112, in gen_team_pic
src = chara.render_icon(size, star_slot_verbose)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 157, in render_icon
pic = unknown_chara_icon.convert('RGBA').resize((size, size), Image.LANCZOS)
NameError: name 'unknown_chara_icon' is not defined
2022-09-28 16:54:02 ERROR name 'unknown_chara_icon' is not defined
Traceback (most recent call last):
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 154, in render_icon
pic = self.icon.open().convert('RGBA').resize((size, size), Image.LANCZOS)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\R.py", line 50, in open
return Image.open(self.path)
File "C:\Users\gao\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 3068, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './res/img\\bluearchive\\unit\\icon_unit_1000.png'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await service_func.func(bot, event)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\service.py", line 228, in wrapper
return await func(bot, event)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\__init__.py", line 167, in gacha_200
pics.append(chara.gen_team_pic(res[i:j], star_slot_verbose=False))
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 112, in gen_team_pic
src = chara.render_icon(size, star_slot_verbose)
File "C:\Users\gao\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\gacha\chara.py", line 157, in render_icon
pic = unknown_chara_icon.convert('RGBA').resize((size, size), Image.LANCZOS)
NameError: name 'unknown_chara_icon' is not defined
刚才发现定时推送的日历没推送,查了历史记录发现这两天定时发送的ba日历没有推送,看了一下HoshinoBot的error.log有如下报错
[2023-12-12 16:39:50,898 ba_calendar] ERROR: <class 'AttributeError'> occured when start_scheduled handling message -1120049348.
[2023-12-12 16:39:50,898 ba_calendar] ERROR: 'ImageDraw' object has no attribute 'textsize'
Traceback (most recent call last):
File "C:\Users\Fan\Desktop\HoshinoBot\hoshino\msghandler.py", line 23, in handle_message
await service_func.func(bot, event)
File "C:\Users\Fan\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\calendar.py", line 113, in start_scheduled
img = await generate_day_schedule(server)
File "C:\Users\Fan\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\ba_calendar\generate.py", line 30, in generate_day_schedule
draw_title(im, 0, title, ba_now.strftime('%Y/%m/%d'), '正在进行')
File "C:\Users\Fan\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\ba_calendar\draw.py", line 76, in draw_title
draw_text(im, x, y, width, height, middle, 0, color[0]['front'])
File "C:\Users\Fan\Desktop\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\ba_calendar\draw.py", line 35, in draw_text
tw, th = draw.textsize(text, font=font)
AttributeError: 'ImageDraw' object has no attribute 'textsize'
想起最近加了个头像表情包生成器的插件,排查后发现是该插件升级了Pillow
版本,由初始的9.1.1
升到了10.1.0
导致的错误,问了一下GPT有如下解决方法
Blue_Archive_HoshinoBot/ba_calendar/draw.py
文件
第35行
tw, th = draw.textsize(text, font=font)
改为
bbox = draw.textbbox((x, y), text, font=font)
tw, th = bbox[2] - bbox[0], bbox[3] - bbox[1]
目前能正常发ba日历,头像表情包生成器也能正常使用,副作用未知
大佬您好,在使用“ba查询 xx”指令过程中发现部分学生的信息获取失败,具体学生和错误信息如下:
无法获取信息的学生:水日奈、水星野、春香、温泉切里诺、静子、小护士、水静子
Hoshinobot错误信息:
ERROR: <ActionFailed data=None, echo={'seq': 646}, msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='请参考 go-cqhttp 端输出'>
Traceback (most recent call last):
File "C:\HOSHINO\HoshinoBot\hoshino\msghandler.py", line 21, in handle_message
await service_func.func(bot, event)
File "C:\HOSHINO\HoshinoBot\hoshino\modules\Blue_Archive_HoshinoBot\calendar.py", line 168, in send_student_info
await bot.send_group_forward_msg(group_id=ev.group_id,messages=msgs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp_init_.py", line 238, in call_action
return await self._api.call_action(action=action, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 178, in call_action
result = await self._wsr_api.call_action(action, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 153, in call_action
return _handle_api_result(await
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 38, in _handle_api_result
raise ActionFailed(result=result)
aiocqhttp.exceptions.ActionFailed: <ActionFailed data=None, echo={'seq': 646}, msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='请参考 go-cqhttp 端输出'>
gocq端错误信息:
[WARNING]: 合并转发(群)消息发送失败: 账号可能被风控.
大佬您好,我在使用过程中发现日服日历没有具体数据(只有最上面一行的标题:日服活动 日期 正在进行),请问是哪里出了问题呢?
然后日服的卡池更新速度似乎也很慢,一直没有更新到最新的卡池,现在还显示七月份的卡池
谢谢!
请问大佬当机器人是管理员时,使用ba来一井功能机器人会禁言使用了该功能的成员,时间似乎是在10-30分钟内随机,不知道是因为什么原因?
还有就是cardimage和普通image有什么区别吗,实际切换的时候好像看不出来图片有什么区别?
谢谢大佬!
没法复制报错代码,2012服务器复制不了很急
[2024-07-24 07:51:22,277 nonebot] INFO: Self: 1946419968, Message -2147476172 fr
'ba攻略 白子'
[2024-07-24 07:51:22,277 ba_wiki] INFO: Message -2147476172 triggered send_arona
.
[2024-07-24 07:51:28,239 ba_wiki] ERROR: <class 'aiocqhttp.exceptions.ActionFail
ed'> occured when send_arona handling message -2147476172.
[2024-07-24 07:51:28,239 ba_wiki] ERROR: <ActionFailed status='failed', retcode=
1200, data=None, message='发送超时', wording='发送超时', echo={'seq': 6780}>
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\msghandler.py", line 2
8, in handle_message
await service_func.func(bot, event)
File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\modules\bluearchive\ba
wiki_init.py", line 128, in send_arona
await bot.send(ev, msg)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p
ackages\aiocqhttp_init_.py", line 271, in send
return await self.send_msg(**params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p
ackages\aiocqhttp_init_.py", line 238, in call_action
return await self._api.call_action(action=action, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p
ackages\aiocqhttp\api_impl.py", line 178, in call_action
result = await self._wsr_api.call_action(action, **params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p
ackages\aiocqhttp\api_impl.py", line 153, in call_action
return _handle_api_result(await
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p
ackages\aiocqhttp\api_impl.py", line 38, in _handle_api_result
raise ActionFailed(result=result)
aiocqhttp.exceptions.ActionFailed: <ActionFailed status='failed', retcode=1200,
data=None, message='发送超时', wording='发送超时', echo={'seq': 6780}>
[2024-07-24 07:51:28,255 nonebot] INFO: Message -2147476172 is ignored: Handled
by Hoshino
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.