Giter Site home page Giter Site logo

cosmos01 / blue_archive_hoshinobot Goto Github PK

View Code? Open in Web Editor NEW
100.0 100.0 4.0 18.87 MB

Blue Archive 碧蓝档案(日服\国服\国际服通用)图形化活动日历、模拟抽卡、官推转发、攻略图获取插件, 适用于 HoshinoBot v2.

License: GNU General Public License v3.0

Python 100.00%

blue_archive_hoshinobot's People

Contributors

cosmos00 avatar cosmos01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blue_archive_hoshinobot's Issues

日服日历获取不到

大佬您好,我在使用过程中发现日服日历没有具体数据(只有最上面一行的标题:日服活动 日期 正在进行),请问是哪里出了问题呢?
然后日服的卡池更新速度似乎也很慢,一直没有更新到最新的卡池,现在还显示七月份的卡池
谢谢!

ba来一井报错

已经使用过更新卡池指令

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查询指令无法获取部分学生信息

大佬您好,在使用“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有什么区别吗,实际切换的时候好像看不出来图片有什么区别?
谢谢大佬!

大佬,代码报错

大佬您好,本人纯新手,配置bot的时候没有看到HoshinoBot\res\img这个目录欸,我自己创建了一个之后在后面运行报错找不到文件位置,大部分功能都实现不了
image

ba查询功能运行时间太长

如图:ba查询功能运行时间太长导致bot在这期间其他功能都不能使用,只有等待此功能完成后再继续运行(最开始我以为是卡死了)
因为运行时间太长还导致了部分单独挂载插件与hoshino本体断开了连接
image
P)10$_(9E`LNS4Q~S01)C3K
大佬看到了看能不能优化一下,不知道是不是我的问题但这确实有点花时间(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.