Skip to content

Releases: musnows/Kook-Valorant-Bot

v1.2.2

09 Jun 13:50
a5a2d6d
Compare
Choose a tag to compare

What's Changed?

  • refactor(api): add params type in request route def
  • fix(api): fix url params check in /shop-img, add route for web/ahri status pages
  • feat(ShopImg/ApiHandler): add get_img_ratio in ShopImg.py, auto check img ratio instead of using api params;
  • feat(admin): update startup_msg when bot been killed
  • refactor(BotLog): handler guild/view err with warning
  • fix(apiHandler): fix if err in login_handler
  • fix(web): using relitive path in web/ahri/index.html
  • fix(Reauth): using card msg in check_reauth err reply

  • refactor(api): 在route函数中新增参数的类型
  • fix(api): 修复 /shop-img 的 params 参数检查, 新增访问 web/ahri 状态页面静态资源的route
  • feat(ShopImg/ApiHandler): 新增 get_img_ratio 函数,使用该函数来自动检查图片的比例,而不需要在api参数中指明。
  • feat(admin): 当机器人被kill掉的时候,更新startup_msg
  • refactor(BotLog): 使用 warning 来处理 guild/view err
  • fix(apiHandler): 修复login_handler的错误if参数和其他错误
  • fix(web): 在 web/ahri/index.html 中使用相对路径来正确访问静态资源
  • fix(Reauth): 在 check_reauth 的错误回复中使用卡片消息

v1.2.1

12 May 15:50
9e5c51e
Compare
Choose a tag to compare

What's Changed?

  • refactor(vip): modfiy log_str in vip_roll task
  • refactor(help): update help command
  • feat(startup_msg): add start_msg for update, show if bot alive
  • refactor(config):
    • using 'kook' to replace 'token' in root
    • add options for skin img cache in memory (set false to save memory)
  • docs(init-bot/api): update docs

  • refactor(vip): 修改了vip_roll任务中的日志字符串
  • refactor(help): 更新帮助命令
  • feat(startup_msg): 新增启动消息(发送到debug频道中)并会在几个task中实时更新,可以用来查看机器人是否在线。
  • refactor(config):
    • 配置文件中用 kook 替代了原本的 token
    • 新增了是否在内存中缓存图片的选项,设置为false以节省内存
  • docs(init-bot/api): 更新api和init-bot的文档

v1.2.0

12 May 15:45
98d0366
Compare
Choose a tag to compare

What's Changed?

  • refactor(code): rename all def name to UNIX style
  • refactor(admin): move admin command to admin.py
  • refactor(code): using Admin.is_admin def to replace if user_id == matser_id
  • feat(FileManage): add class boolean for bool type reverse
  • feat(api): add /bot-log for get bot cmd/guild/user log
  • feat(web/ahri): add vue & ajax for get bot status from api.py
  • feat(config): add options for webhook connection
  • docs(requirements): add pyg2plot

  • refactor(code): 函数命名重构为 UNIX style
  • refactor(admin): 将代码中部分管理员命令统一移动道 admin.py
  • refactor(code): 用 Admin.is_admin来统一替代if user_id == matser_id
  • feat(FileManage): 新增 class boolean 来管理bool类型和快速逆置
  • feat(api): 新增 /bot-log 接口来获取机器人 cmd/guild/user 命令使用信息
  • feat(web/ahri): 新增 vue & ajax 代码来请求 /bot-log 接口,展示机器人用户量
  • feat(config): 新增webhook机器人启动方式
  • docs(requirements): add pyg2plot

v1.1.5

05 May 13:56
4fd27b6
Compare
Choose a tag to compare

What's Changed?

  • feat(statusweb): add web path create at init
  • fix(main):
    • using /kill @bot in kill_cmd
    • using bot.client.fetch_me to replace bot.me
    • add api resp info while err in /shop cmd
  • docs(gitignore): add code/web/ahri/index.html
  • refactor(shopImg): add try/except in skin_uuid_to_comp, add img append to global list, make sleep time shorter
  • refactor(botlog): fix err in log_bot_cmd
  • refactor(help): update help cmd

v1.1.4

20 Apr 00:12
b9916c6
Compare
Choose a tag to compare

What's Changed?

  • fix(BotLog): fix keyErr in log_bot_cmd, add cmd log user/guild useage
  • feat(BotLog): add user/guild init_time,used_time
  • fix(main): fix params err in /kill cmd, fix args err in /login cmd
  • fix(funny): add n limit to /roll command
  • docs(api): update api docs
  • docs(gitignore): ignore web file
  • docs(log.example): update BotUserLog.json

  • fix(BotLog): 修复了 log_bot_cmd函数的keyErr, 添加正确的用户/服务器每日命令量的计数
  • feat(BotLog): 用户和服务器字段新增初始化时间和最后使用时间
  • fix(main): 修复了kill命令和login中的参数错误
  • fix(funny): roll命令添加同时掷骰子的数量限制(否则会撞到2w字limit)
khl.requester.HTTPRequester.APIRequestFailed: Requesting 'POST message/create' failed with 40000: Content只能包含至多20,000个字符。
  • docs(api): 更新 api docs
  • docs(gitignore): 忽略 web 文件夹
  • docs(log.example): 更新 BotUserLog.json

v1.1.3

04 Apr 13:41
8bb8e1a
Compare
Choose a tag to compare

What's Changed?

  • feat(main)
    • add /mission cmd for collecting uuid data(support muti-account)
    • fix await err in notify-task
    • move upd command to ValFileUpd.py
    • add /match cmd for getting latest 5 match details
  • feat(pkg)
    • add vip.py/BotStatus.py/match.py/mission.py/StatusWeb.py/ValFileUpd.py/Translate.py to plugins
  • feat(api)
    • refactor import path
    • add ip:port in start up print
  • fix(translate): add empty check for caiyun api key
  • docs: update README & gitignore & screenshot

v1.1.2

18 Mar 02:39
Compare
Choose a tag to compare

What's Changed?

  • feat(main): add /login-l cmd for mutiply account login
  • feat(main): add mutiply account shop notify in task
  • feat(BotLog): add json格式不正确 err in APIRequestFailed
  • feat(file): add utils.file.Files for loading all files
  • feat(api): add user uuid/name/tag reply in /login /tfa
  • fix(main): fix keyerr
  • docs(log.example): update example files
  • ......

  • 更新 多账户登录功能,使用 /login-l 命令查看已登录的账户
  • 更新 shop/uinfo/night 命令通过编号支持不同账户的查询
  • 更新 notify task同样支持多账户提醒
  • 更新 BotLog中的APIRequestFailed处理函数新增json格式不正确错误
  • 修复 main中的一大堆keyerr
  • 更新 api的login和tfa接口在登陆成功后返回用户的uuid和昵称/tag
  • 文档 更新 example 文件
  • 还有很多,懒得写了……

v1.1.1

06 Mar 15:20
1ab9e3c
Compare
Choose a tag to compare

What's Changed?

  • fix(main): fix err of import .utils. more detail
  • fix(ApiToken): import _log
  • fix(main): keyerr in SkinRateDict, modify 'pit' to 'rating'
  • feat(EzAuth): add exp_print in reauthorize; add EzAuthExp.InitError if an EzAuth obj used before init
  • fix(main): add EzAuthExp.InitError to check_reauth
  • feat(main): add isClear_UserShopCache for checking if UserShopCache was clear in 8AM.UTC+8
  • refactor(BotLog): rename BotLog.logging as BotLog.logMsg
  • refactor(utils): using _log in utils.modules add main.py/api.py

  • 修复 main中 import utils 使用了错误的 .utils 相关代码
  • 修复 ApiToken中使用了_log 却没有import
  • 修复 main中SkinRateDict的key和评分更新函数冲突
  • 功能 EzAuth添加EzAuthExp.InitError,检查是否有EzAuth对象在未初始化之前使用(比如2fa用户没有提供邮箱验证码就执行/shop命令了)
  • 修复 check_reauth函数中添加对EzAuth对象未初始化的判断
  • 更新 添加isClear_UserShopCache函数来检查UserShopCache是否在早八(北京时间,也就是商店更新时间)被清空
  • 重构 utils里面的模组全都使用_log来替代print
  • 重构 BotLog.logging 重命名为 BotLog.logMsg

v1.1.0

03 Mar 14:29
986df07
Compare
Choose a tag to compare

What's Changed?

  • docs(api/REAMDE): update docs, api url changed, add /shop-cmp
  • docs(requirements): update requirements.txt
  • refactor(Ezauth): using new version of EzAuth
  • feat(ShopRate): add ShopCache with md5 for 1-1 img, set acl for user
  • fix(main): add del auth in start up task, using bot.on_startup to replace bot.task.add_date
  • refactor(utils): rename def, add return value, modify import

  • 文档 修改了README和api的文档,api根链接添加版本号,添加了/shop-cmp接口文档
  • 文档 更新 requirements.txt
  • 重构 修改了EzAuth,实现了reauthorize,不再依赖于 floxay/python-riot-auth 项目
  • 重构 utils里面的文件,更新了import,重命名了一些函数,并对一些函数添加了返回值
  • 功能 ShopRate里面添加了leancloud的1-1商店图片缓存
  • 修复 启动任务改用bot.on_startup,添加了对象的del。目的是修复EzAuth中无user_idd 成员的问题,但目前看来并没有成功修复

v1.0.9

25 Feb 08:56
f30571a
Compare
Choose a tag to compare

What's Changed?

  • docs(api/init-bot): update docs
  • docs(leancloud): add leancloud docs
  • docs(log.example): add log/img_temp folder for better deploy
  • docs(requirements): update requirements.txt
  • docs(config): update config.exp.json
  • feat(main): add local cookie file remove in /logout
  • feat(main): add no params for /kill (only kill prescriptive bot)
  • feat(ShopRate): add leancloud database for rating skin (replacing local file ValShopRate)
  • feat(api): add raw params in /shop, return Response of Riot Api(remove /shop-url

  • 文档:更新了api/init-bot/leancloud的文档,和config.exp.json
  • 功能:main中的/kill命令添加机器人编号参数,只kill指定的机器人(在config中指定)
  • 更新:皮肤评论功能现已对接到leancloud结构化存储数据库,详见 docs/leancloud.md
  • 更新:api的/shop-url接口更换为/shop接口,新增了raw参数。指定raw参数后,将不再画图,而是返回riot api的原始响应
  • 更新:/logout命令会在删除全局变量中的auth对象的同时,删除本地保存的cookie