Coder Social home page Coder Social logo

gwyog-hoshino-plugins's People

Contributors

a-kirami avatar cca2878 avatar corvo007 avatar foxwhite25 avatar guch8017 avatar gwyog avatar sudingquan avatar var-mixer avatar zangxx66 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gwyog-hoshino-plugins's Issues

戳一戳集卡名字显示问题

2id会使用1的名字
3后面的所有角色在*11(普通)、****61(超稀有)时会无法读取名字(识别成未知角色)

pokeman查看仓库卡片总数有误

截止到2021年8月4日,pcr日服应该出了159个角色,如果再加上部分npc和骑士君的话普通卡片应有163个,但实际戳一戳查看仓库显示的普通卡片只有140个,这方面是有特定设置吗?另外我这边普通卡片从显示来看应该只差了1,但下方文字说明却是137/140。
image

海豹杀手貌似并不能识别日服海豹截图

拿日服截图测试了几次,log显示完全没有识别出来这是在豹跳,只是识别这是个图片
[2020-11-18 17:31:12,848 nonebot] INFO: Self: , Message -1998184491 from 15@[群:4******1]: '[CQ:image,file=79b502060552be63ac1526d5b91e77ee.image,url=http://gchat.qpic.cn/gchatpic_new/1********5/3988408061-2471003109-79B502060552BE63AC1526D5B91E77EE/0?term=2]'

记忆小游戏报错

神经衰弱和完美配对,机器人撤回消息后都会报错,代码也不继续运行了。
[2020-09-10 16:41:16,759 pcr-neurasthenia] ERROR: <class 'aiocqhttp.exceptions.ActionFailed'> occured when neurasthenia_game handling message 2970.
[2020-09-10 16:41:16,759 pcr-neurasthenia] ERROR: <ActionFailed, retcode=100>
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\xcwbot\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await sf.func(bot, event)
File "C:\Users\Administrator\Desktop\xcwbot\HoshinoBot\hoshino\service.py", line 217, in wrapper
return await func(bot, event)
File "C:\Users\Administrator\Desktop\xcwbot\HoshinoBot\hoshino\modules\pcrmemorygames\pcr_neurasthenia.py", line 53, in neurasthenia_game
await bot.delete_msg(message_id = msg['message_id'])
File "C:\Program Files\Python38\lib\site-packages\aiocqhttp_init_.py", line 223, in call_action
return await self._api.call_action(action=action, **params)
File "C:\Program Files\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 186, in call_action
result = await self._wsr_api.call_action(action, **params)
File "C:\Program Files\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 161, in call_action
return _handle_api_result(
File "C:\Program Files\Python38\lib\site-packages\aiocqhttp\api_impl.py", line 51, in _handle_api_result
raise ActionFailed(retcode=result.get('retcode'))
aiocqhttp.exceptions.ActionFailed: <ActionFailed, retcode=100>

发现一个bug 错误103

您好。这个游戏很好玩。导致群里的人玩了好多次
不知道为啥。我这里连续玩几次就有可能出现一个错误。
错误: <ActionFailed, retcode=103>
之后再发猜头像就会提示
此轮游戏还没结束,请勿重复使用指令

猜头像提示错误

发指令之后提示can only concatenate str (not "MessageSegment") to str 再发一次指令提示游戏已经开始了

卡片集换插件的报错

[2020-12-04 01:31:53,195 卡片集换] ERROR: <class 'IndexError'> occured when auto_mix_card handling message -978403562.
[2020-12-04 01:31:53,195 卡片集换] ERROR: tuple index out of range
Traceback (most recent call last):
File "/root/bot/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message
await sf.func(bot, event)
File "/root/bot/HoshinoBot/hoshino/modules/pokemanpcr/poke_man_pcr.py", line 460, in auto_mix_card
card_counter, card_descs, card = get_random_cards(db.get_cards_num(ev.group_id, ev.user_id), row_num, col_num, mix_rounds, False, get_random_cards_list, super_rare_prob, rare_prob)
File "/root/bot/HoshinoBot/hoshino/modules/pokemanpcr/poke_man_pcr.py", line 210, in get_random_cards
base.paste(img, (coor_x, coor_y), mask=img.split()[3])
IndexError: tuple index out of range

某群友一键一键合成时出现数组越界的情况,导致没有回复卡片也没了。这里的越界出现在amount判断之前。

Could I merge these games into HoshinoBot?

Hello, I am the author of HoshinoBot.
It is a great charming game for pcrbots! You've made a great work!!

您好,我是HoshinoBot的作者。
您开发的小游戏非常棒!Great work!!

Could I please merge pcrdescguess and pcravatarguess into the master branch of HoshinoBot? Of course, I will acknowledge your id and refer to your repo in the documents.

我能否将pcrdescguess和pcravatarguess这两个小游戏合并至HoshinoBot的master分支?当然,我会鸣谢您的id,并注明您的项目地址。

会展爬虫在centos下无法运行

chrome和chromedriver均已正常配置
[root@VM-1-10-centos ]# google-chrome --version
Google Chrome 91.0.4472.114
[root@VM-1-10-centos ]# chromedriver
Starting ChromeDriver 91.0.4472.19 (1bf021f248676a0b2ab3ee0561d83a59e424c23e-refs/branch-heads/4472@{#288}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
^C
[root@VM-1-10-centos ]#

[2021-07-06 21:54:25,370 nga-clan-battle-spider] INFO: Scheduled job nga_spider start.
[2021-07-06 21:54:26,444 nga-clan-battle-spider] ERROR: <class 'selenium.common.exceptions.WebDriverException'> occured when doing scheduled job nga_spider
.
[2021-07-06 23:54:26,445 nga-clan-battle-spider] ERROR: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Traceback (most recent call last):
File "/root/pcrbot/HoshinoBot/hoshino/service.py", line 338, in wrapper
ret = await func()
File "/root/pcrbot/HoshinoBot/hoshino/modules/ngaclanbattlespider/ngaclanbattlespider.py", line 190, in nga_spider
NGASpider.set_cookies(await get_nga_cookies())
File "/root/pcrbot/HoshinoBot/hoshino/modules/ngaclanbattlespider/ngaclanbattlespider.py", line 139, in get_nga_cookies
driver = webdriver.Chrome()
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in init
RemoteWebDriver.init(
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_ses
sion
response = self.execute(Command.NEW_SESSION, parameters)
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_
response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

安装opencv库后依旧无法导入cv2

[2020-12-03 19:02:36,075 nonebot] ERROR: Failed to import "hoshino.modules.pcrsealkiller.sealkiller", error: DLL load failed while importing cv2: 找不到指定的模块。 [2020-12-03 19:02:36,075 nonebot] ERROR: DLL load failed while importing cv2: 找不到指定的模块。 Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 249, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\modules\pcrsealkiller\sealkiller.py", line 32, in <module> opencv_util = importlib.import_module(RELATIVE_PATH.replace(os.sep,'.') + '._opencv_util') File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\modules\pcrsealkiller\_opencv_util.py", line 1, in <module> import cv2 ImportError: DLL load failed while importing cv2: 找不到指定的模块。

Windows Server 2008
Python 3.8
opencv-python 3.4.11.45

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.