gwyog / gwyog-hoshino-plugins Goto Github PK
View Code? Open in Web Editor NEWHoshinoBot公主连结实用/娱乐插件合集on Mirai
License: GNU General Public License v3.0
HoshinoBot公主连结实用/娱乐插件合集on Mirai
License: GNU General Public License v3.0
2id会使用1的名字
3后面的所有角色在*11(普通)、****61(超稀有)时会无法读取名字(识别成未知角色)
两个都很好,都想要,但总是并发
拿日服截图测试了几次,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>
您好。这个游戏很好玩。导致群里的人玩了好多次
不知道为啥。我这里连续玩几次就有可能出现一个错误。
错误: <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判断之前。
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,并注明您的项目地址。
因为是刚开始学习编程,请问有什么需要注意的吗,比如LICENSE之类的我需要怎么做
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.)
[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
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.