zyujs / clanbattle_info Goto Github PK
View Code? Open in Web Editor NEW公主连结国服公会战数据查询及自动报刀插件 for HoshinoBot
License: GNU Affero General Public License v3.0
公主连结国服公会战数据查询及自动报刀插件 for HoshinoBot
License: GNU Affero General Public License v3.0
作者大大有空能否考虑以后优化一下,实现出现不按顺序报刀的时候,插件也可以自动报刀?
打个比方说,就是游戏里出了2刀,我第一刀没有在群里手动报刀打算等插件给我报,第二刀我提前在群里或者yobot网页手动报刀,如果按照理想的情况,插件能自动检测出第一刀没报然后给我自动补报。
但是根据上次公会战的情况,报刀插件要么直接暂停,要么干脆不给你补报第一刀并且直接跳过。
我测试了一下,楼主大大写的插件必须要按照游戏里的出刀顺序才能给你自动报刀,还是按照上面的情况来说,我游戏里出了2刀,第一刀手动报了第二刀没报,5分钟左右更新数据后插件能给我补报第二刀......
我估计可能实现这个功能会有点麻烦,不过还是希望作者大大以后有空能实现这个功能吧,这样插件就完美了......
顺带,这个插件真的不错!
网页端报表的更新频率调整为每日0点更新了,太s逼了。
真的非常感谢大佬开发这个插件,但官方这一手……
很感谢大佬为我们在这几次的工会战的贡献,再次感谢。
看到boss报表里面的数据更新时间还是比较及时的,不像公会总表里面大半天才更新一下。
不太懂requests怎么去拿同一个页面里面的不同王下面的出刀,试了下selenium带cookie访问后是可以拿到了。主要问题还是服务器弄selenium比较麻烦,不适合普及,想学习下怎么用requests可以拿到boss报表下面的所有新更新的数据呢。
出现 clanbattle_info插件检测到新的提交记录,请及时更新. 时要怎么处理
公会内成员改名后提示无此成员
重新绑定以后
发现cbi插件显示yobot索引比实际yobot少一条,比如出刀推送索引28条,yobot状态索引27条,但是实际yobot是28条
[2020-11-20 13:55:59,617 nonebot] INFO: Self: 3254538608, Message -1324735317 from 137976310@[群:1056013632]: 'cbi 检查成员' [2020-11-20 13:55:59,618 clanbattle_info] INFO: Message -1324735317 triggered cbi by PrefixTrigger. [2020-11-20 13:56:05,092 clanbattle_info] ERROR: <class 'aiocqhttp.exceptions.ActionFailed'> occured when cbi handling message -1324735317. [2020-11-20 13:56:05,093 clanbattle_info] ERROR: <ActionFailed, retcode=100> Traceback (most recent call last): File "/root/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message await sf.func(bot, event) File "/root/HoshinoBot/hoshino/modules/clanbattle_info/__init__.py", line 225, in cbi await bot.send(ev, msg) File "/usr/local/lib/python3.8/site-packages/aiocqhttp/__init__.py", line 256, in send return await self.send_msg(**params) File "/usr/local/lib/python3.8/site-packages/aiocqhttp/__init__.py", line 223, in call_action return await self._api.call_action(action=action, **params) File "/usr/local/lib/python3.8/site-packages/aiocqhttp/api_impl.py", line 186, in call_action result = await self._wsr_api.call_action(action, **params) File "/usr/local/lib/python3.8/site-packages/aiocqhttp/api_impl.py", line 161, in call_action return _handle_api_result( File "/usr/local/lib/python3.8/site-packages/aiocqhttp/api_impl.py", line 51, in _handle_api_result raise ActionFailed(retcode=result.get('retcode')) aiocqhttp.exceptions.ActionFailed: <ActionFailed, retcode=100>
主人以外的使用倒是会正常提醒权限不足,我之前怀疑是不是主人有2个导致的,结果删除后还是报错。
cookie无法使用,在模拟器和手机上两次尝试均无效
不知道bigfun是否有官方api
想给自己的discord bot用上
昵称":p在群 cc"匹配失败,显示找不到该成员。
目测是yobot.py 228行#生成昵称-QQ对应表部分的问题。
在下不懂python,麻烦管理解决一下?
embedded_yobot_add_challenge
这个方法里的
msg = 'yobot新增出刀记录:\n' + str(result)
会造成同步数据的时候在群内光速刷屏
Traceback (most recent call last):
File "/ai/HoshinoBot/hoshino/modules/clanbattle_info/init.py", line 204, in group_process
await report_process(bot, group_id)
File "/ai/HoshinoBot/hoshino/modules/clanbattle_info/yobot.py", line 379, in report_process
ret, result = await check_yobot(group_id)
File "/ai/HoshinoBot/hoshino/modules/clanbattle_info/yobot.py", line 346, in check_yobot
dt = datetime.datetime.fromtimestamp(yobot_challenges[yobot_index]['challenge_time'])
IndexError: list index out of range
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.