GithubHelp home page GithubHelp logo

autopcr's Introduction

GitHub Stats

Top Langs

autopcr's People

Contributors

cc004 avatar cca2878 avatar lanly109 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

autopcr's Issues

自动过验证码的url显示deprecate

autopcr/bsdk/validator.py的14行,对网址http://pcrd.tencentbot.top/validate进行post的结果是This API has been deprecate,please use /geetest,参照pcrjjc2的代码换成https://pcrd.tencentbot.top/geetestpost返回405 Method Not Alloweget返回404 Not Found。不知道是不是目标网站的失效了还是其他原因。

另外pcrjjc2看不太懂诶,按理说返回的uuid是验证请求的序号,用来查询结果的,但它就向https://pcrd.tencentbot.top/geetest进行get了一下获得到的uuid,没有附带任何数据(比如这里的就附带了包含验证码的网址),它如何知道要过哪个验证码获得的validation?

辛苦冲冲dalao看看了qwq

关于自动过码的

最近突然要验证码了,而且验证码变成点击文字,而不是三维空间点小球的,之前re_new的那个自动过码提交请求后查询结果返回了500,不知是验证码类型变了后端验证没变还是有其他验证(看群里看到的)

另外冲冲6.2.0的改动好大qwq尤其是将responseupdate单独提出来,用handle修饰器处理,这从代码上来看能让各类的职责更加鲜明,但把update单独提出来,在编写时又得回去看response的定义,另一方面在查错(比如某些物品忘记更新)时得两个文件来回切换。(当然主要是补充了很多update,迁移代码代码比较麻烦qwq

更新bsgamesdk

目前使用的是21年版本sdk,可能是导致账号异常的原因之一

已经git了最新的hos,用作插件版报错。

ERROR: Failed to import and load "hoshino.modules.autopcr.clan_iterator", error: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\clan_iterator.py", line 1, in
from autopcr.model.requests import *
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.clan_unlocker", error: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\clan_unlocker.py", line 1, in
from autopcr.core import pcrclient, ApiException, sessionmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.db_test", error: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\db_test.py", line 1, in
from autopcr.db.assetmgr import instance as assetmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.httpserver_test", error: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\httpserver_test.py", line 1, in
from autopcr.http_server.httpserver_test import *
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,813 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.server", error: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init
.py)
[2023-07-12 13:22:05,813 nonebot] ERROR: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init
.py)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\server.py", line 18, in
from hoshino.config import PUBLIC_ADDRESS
ImportError: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init
.py)
[2023-07-12 13:22:05,813 nonebot] INFO: Succeeded to import and load "hoshino.modules.autopcr.util"
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')

作为hoshino插件运行时,发送指令会报错'Styler' object has no attribute 'to_html

[2023-12-11 12:55:38,809 nonebot] INFO: Self: 53498118, Message ******** from ****
****@[群:********]: '#刷图推荐'
[2023-12-11 12:55:38,812 自动清日常] INFO: Message ******** triggered wrapper.
using cache D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr\autopcr..
./cache/buffer\buffer.json
None requested SourceIniIndexRequest at /source_ini/index?format=json
None requested SourceIniGetMaintenanceStatusRequest at /source_ini/get_maintenan
ce_status?format=json
None requested ToolSdkLoginRequest at /tool/sdk_login
None requested CheckGameStartRequest at /check/game_start
None requested CheckAgreementRequest at /check/check_agreement
None requested LoadIndexRequest at /load/index
房东 requested HomeIndexRequest at /home/index
Traceback (most recent call last):
File "D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr_task.py", line
40, in do_task
img = await draw(resp, alian + '' + ''.join(self.do_module_list()), self.c
allback.qid)
File "D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr_util.py", line
75, in draw
imgkit.from_string(df.to_html(index=False, escape=False), file)
AttributeError: 'Styler' object has no attribute 'to_html'


运行系统为windows7
wkhtmltoimage已安装
requirements.txt内依赖均已安装。
直接作为网页版运行都没有问题,均正常。
作为hoshino插件运行时,发送指令后返回就会报错AttributeError: 'Styler' object has no attribute 'to_html'
另外在http_server文件夹下并未发现名为static的文件夹。

求教,感谢!

关于商店购买的限制

关于角色碎片,虽然客户端做了购买限制(即到达一定数量就不能购买),但服务端并没没有这个检查,实际可以继续购买。
所以我写的部分仅仅是区分了仅购买装备、仅购买角色碎片(普通商店就是经验药水和强化石),还是都购买,因为有这个选项,并且不同商店的内容是不一样的(总的来说有三类,经验药水+强化石,角色碎片和装备,经验药水和装备),重置次数选项就不晓得加在哪里好一点。

用作插件时报错,大佬帮忙给看看

[2023-06-13 11:12:11,107 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.clan_unlocker", error: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, 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 "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\clan_unlocker.py", line 1, in
from autopcr.core import pcrclient, ApiException, sessionmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.httpserver_test", error: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, 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 "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\httpserver_test.py", line 1, in
from autopcr.http_server.httpserver_test import *
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:11,122 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.main", error: No module named 'autopcr'
[2023-06-13 11:12:11,122 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, 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 "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\main.py", line 3, in
import autopcr
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:14,030 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.server", error: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init
.py)
[2023-06-13 11:12:14,030 nonebot] ERROR: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init
.py)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, 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 "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\server.py", line 18, in
from hoshino.config import PUBLIC_ADDRESS
ImportError: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init
.py)

目前个人使用过程中无法正常运作的功能汇总

地下城扫荡 underground_skip
露娜塔回廊扫荡 tower_cloister_sweep
六星碎片本扫荡 six_star
活动H图扫荡 hatsune_h_sweep

#以下的功能是在某次commit之后失效的
地下城扫荡 underground_skip
家园家具升级 room_upper_all
基本信息 user_info

暂时遇到的就这些,给大佬参考
或者等怡宝,他说六月底把之前的开源出来()

关于关卡重置次数

原本的quest_aware里的quest_info包含的挑战次数、重置次数、体力,前后两个数据我替换成了数据库里获得的每个关卡(而不是关卡类别,比如n,h,vh之类的),但是重置次数貌似在数据库里没找到,唯一找到的就是loadindexini_setting里的recover_challenge_countvery_hard_recover_challenge_count之类的。所以关于重置次数的可能得单独判断。

self.quest_info[id] = (daily_limit, 0, stamina) # recovery time TODO

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.