Code Monkey home page Code Monkey logo

axbot's People

Contributors

axiangcoding avatar axiangcoding1 avatar dependabot[bot] avatar icyrain11 avatar

Stargazers

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

Watchers

 avatar

Forkers

icyrain11

axbot's Issues

后端缺少测试

介绍下你遇到的错误
后端缺少测试样例,提交代码质量无法保障

重现步骤
后端缺少测试样例,提交代码质量无法保障

预期的行为
建立测试样例,逐步覆盖后端除业务接口外的代码

额外信息
如果可以,建立集成测试样例

高级功能 - 历史战绩对比

你的功能请求是否与一个问题有关?请描述。
需要提供一个高级功能,让玩家和前段时间的数据进行对比,以及玩家和玩家之间对比

描述你想要的解决方案

  • 历史战绩对比功能 - 即战绩0点自动刷新,并每日生成报告,私聊某玩家
  • 玩家和玩家之间的战绩对比,突出一个孰强孰弱

描述你考虑过的替代方案

额外的内容
该功能需要收费

kook输入敏感词校验

针对需要回应的输入,进行输入敏感词校验。

  • 接入第三方接口服务

经过研究,可以考虑接入七牛云审核

完善文档 v1.0

完善文档部分,提供使用手册,部署文档,开发文档

  • 开发文档
  • 部署文档
  • 使用手册

对接QQ频道机器人

你的功能请求是否与一个问题有关?请描述。
qq机器人已经失效,希望能对接QQ频道机器人

描述你想要的解决方案
qq机器人已经失效,希望能对接QQ频道机器人

描述你考虑过的替代方案
qq机器人已经失效,希望能对接QQ频道机器人

额外的内容
qq频道机器人官方支持,同时需要回调域名拥有备案

bot无权限时无法正确提醒用户

bot无权限时无法正确提醒用户

execute error: {"code":403,"message":"你没有权限进行此操作","data":{"name":"Forbidden","status":403}}
generate response for user input async error

返回文本类型的战绩信息

你的功能请求是否与一个问题有关?请描述。
需要返回文本类型的战绩信息,方便在手机上复制

描述你想要的解决方案
返回文本类型的战绩信息

描述你考虑过的替代方案
返回文本类型的战绩信息

额外的内容

绑定游戏账号到自己的账号中

你的功能请求是否与一个问题有关?请描述。
查询玩家数据时,时常忘记id

描述你想要的解决方案
绑定游戏账号到自己的账号中

描述你考虑过的替代方案
绑定游戏账号到自己的账号中

额外的内容

报告机器人故障

你的功能请求是否与一个问题有关?请描述。
机器人如果发生意想不到的故障,需要能报告故障,并在一些地方查看

描述你想要的解决方案
机器人如果发生意想不到的故障,需要能报告故障,并在一些地方查看

  • 直接私信设置为超管的账号

描述你考虑过的替代方案
机器人如果发生意想不到的故障,需要能报告故障,并在一些地方查看

额外的内容
在此添加关于该功能请求的任何其他背景或屏幕截图。

查询timeout导致程序停止

介绍下你遇到的错误
查询战雷账号时,出现timeout错误,会导致程序故障

重现步骤

额外信息

INFO:root:missionId is 633b5d2b-6e26-4713-a195-4237c854e448, url is https://warthunder.com/zh/community/userinfo/?nick=yuehua2333, xpath condition is //div[@class="content__title"]
axbot-crawler-1  | Traceback (most recent call last):
axbot-crawler-1  |   File "/app/main.py", line 76, in <module>
axbot-crawler-1  |     main()
axbot-crawler-1  |   File "/app/main.py", line 71, in main
axbot-crawler-1  |     channel.start_consuming()
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/pika/adapters/blocking_connection.py", line 1883, in start_consuming
axbot-crawler-1  |     self._process_data_events(time_limit=None)
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/pika/adapters/blocking_connection.py", line 2044, in _process_data_events
axbot-crawler-1  |     self.connection.process_data_events(time_limit=time_limit)
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/pika/adapters/blocking_connection.py", line 851, in process_data_events
axbot-crawler-1  |     self._dispatch_channel_events()
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/pika/adapters/blocking_connection.py", line 567, in _dispatch_channel_events
axbot-crawler-1  |     impl_channel._get_cookie()._dispatch_events()
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/pika/adapters/blocking_connection.py", line 1510, in _dispatch_events
axbot-crawler-1  |     consumer_info.on_message_callback(self, evt.method,
axbot-crawler-1  |   File "/app/main.py", line 53, in callback
axbot-crawler-1  |     wait.until(EC.presence_of_element_located((By.XPATH, xpath_condition)))
axbot-crawler-1  |   File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/support/wait.py", line 95, in until
axbot-crawler-1  |     raise TimeoutException(message, screen, stacktrace)
axbot-crawler-1  | selenium.common.exceptions.TimeoutException: Message:

举办游戏恶劣行为

你的功能请求是否与一个问题有关?请描述。
对游戏玩家的恶劣行为设置一个举办的功能

描述你想要的解决方案
需要支持命令

  • axbot 战雷 举办 <开挂|TK> <玩家ID>
  • axbot 战雷 查询 <玩家ID> 时,显示该玩家的举报内容TAG

同时需要做到

  • 如果被举办的玩家绑定了某个账号,向该账号发出一条私信提醒
  • TAG只展示最近30天
  • 开启每日通报功能,如果服务器管理员进行了配置,则每日通报当天被打恶意标记的玩家ID

描述你考虑过的替代方案

额外的内容

快捷查询战雷昵称数据

你的功能请求是否与一个问题有关?请描述。
快捷查询战雷绑定账号

描述你想要的解决方案
需要若干命令

  • axbot 战雷 绑定 <ID>
  • axbot 战雷 解绑
  • axbot 战雷 查询 因为现在支持中文id了,使用“我”代替可能会有问题,故如果用户绑定了账号,不输入id则为快捷查询
  • axbot 战雷 刷新

描述你考虑过的替代方案

额外的内容

Pull request不应该出镜像包

介绍下你遇到的错误
Pull request不应该出镜像包

重现步骤
重现该行为的步骤:

  1. 构建pull request
  2. 自动构建镜像包

预期的行为
pr不应该构建镜像包,避免恶意使用或者破坏镜像

新增系统用户角色区分

创建的系统用户目前默认为admin管理员用户,应当完成角色的区分

  • 超管用户(管理整个机器人的内容)
  • 租户(使用API等内容,作为第三方接入系统)

cqbot功能迁移:战雷新闻播报

cqbot功能迁移:战雷新闻播报
应当基于

  • #21
  • #22
  • kook需要配置默认输出频道,否则可能输出到没有权限的频道里。这是一个kook的单独配置项

获取游戏烂梗

你的功能请求是否与一个问题有关?请描述。
玩家可以自行上传被传播游戏烂梗

描述你想要的解决方案
玩家可以上传游戏的烂梗到系统中,并可以随机输出
新增命令

  • axbot 上传梗 <梗内容>
  • axbot 来个梗 <梗内容>
    需要:
  • AI审核文本
  • 后台可以审核通过

描述你考虑过的替代方案

额外的内容
也许需要提供后端界面的能力,但需要考虑计划安排

抽卡功能

你的功能请求是否与一个问题有关?请描述。
需要一些娱乐类的小功能

描述你想要的解决方案
新增命令

  • axbot 抽卡,抽一张战雷的载具卡

描述你考虑过的替代方案

额外的内容
需要基于 #77 提供的载具资料

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.