Skip to content

Commit

Permalink
update 2.6.4, view readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kcn3388 committed Dec 20, 2022
1 parent ba35c6b commit ceee9be
Show file tree
Hide file tree
Showing 19 changed files with 1,308 additions and 1,291 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ WIKI:https://github.com/kcn3388/fgogacha/wiki <br>

### 2022
#### ※建议更新后清除全部配置文件并重新生成,每次更新会尽可能兼容之前的配置文件,但是出现问题请先排查配置文件的问题
- 🚀 **v2.6.4 (2022-12-20)**
- 拆分代码
- 修复查询没有pickup的从者时的报错
- 比如活动赠送、友情池限定等
- 🚀 **v2.6.3 (2022-12-20)**
- fgo图书馆-从者信息新增国服未来pick up信息
- 食用指南:``[查询fgo从者 + 关键词 + 未来]``
Expand Down
45 changes: 0 additions & 45 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json.encoder
import os.path

from hoshino import priv, Service
from hoshino.util import DailyNumberLimiter, FreqLimiter
from .get.gacha import gacha
from .get.getGachaPools import getgachapools
Expand All @@ -15,50 +14,6 @@
JEWEL_EXCEED_NOTICE = f"您今天已经抽过{jewel_limit.max}石头了,欢迎明早5点后再来!"
TENJO_EXCEED_NOTICE = f"您今天已经抽过{tenjo_limit.max}张百连券了,欢迎明早5点后再来!"

height = 194
width = 178
dis = 23
floor = 48
st1w = 92
st1h = 200
st2 = 192

boxlist = []

box1 = (st1w, st1h)
for box_i in range(6):
boxlist.append(box1)
lst = list(box1)
lst[0] += width + dis
box1 = tuple(lst)

box2 = (st2, st1h + height + floor)
for box_i in range(5):
boxlist.append(box2)
lst = list(box2)
lst[0] += width + dis
box2 = tuple(lst)

sv_help = '''
# 抽卡模拟相关
[fgo十连] fgo抽卡
[fgo百连] 100抽
[获取fgo卡池] 从mooncell获取卡池数据
[查询fgo卡池] 查询本地缓存的卡池以及本群卡池
[切换fgo卡池 + 卡池编号] 切换需要的卡池
[切换fgo日替卡池 + 卡池编号 + 日替卡池编号] 切换需要的日替卡池
'''.strip()

sv = Service(
name='fgo抽卡',
help_=sv_help,
bundle="娱乐",
enable_on_default=True,
visible=True,
use_priv=priv.NORMAL, # 使用权限
manage_priv=priv.ADMIN, # 管理权限
)


@sv.on_fullmatch(("帮助fgo抽卡", "帮助FGO抽卡", "帮助bgo抽卡", "帮助BGO抽卡"))
@sv.on_rex(r"(?i)^[fb]go[抽c][卡k][帮b][助z]$")
Expand Down
28 changes: 1 addition & 27 deletions fgo_fetch_all.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
from aiocqhttp import ActionFailed

from hoshino import priv, Service, HoshinoBot
from hoshino import HoshinoBot
from .download.download_all_res import download_svt, download_cft, download_cmd
from .get.get_all_cft import *
from .get.get_all_cmd import *
from .get.get_all_svt import *

sv_fetch_help = '''
# 数据管理相关
[获取全部内容] 获取从者/礼装/纹章的相关内容
- 从者包括职介和指令卡
- 礼装/纹章包括技能
- 子命令:
- [获取全部从者]
- [获取全部礼装]
- [获取全部纹章]
[下载全部卡片资源] 从上述数据中下载对应静态资源
- 子命令:
- [下载全部从者资源]
- [下载全部礼装资源]
- [下载全部纹章资源]
'''.strip()

sv_fetch = Service(
name='fgo数据获取',
help_=sv_fetch_help,
bundle="娱乐",
enable_on_default=True,
visible=True,
use_priv=priv.NORMAL, # 使用权限
manage_priv=priv.ADMIN, # 管理权限
)


@sv_fetch.on_fullmatch(("帮助fgo数据获取", "帮助FGO数据获取", "帮助bgo数据获取", "帮助BGO数据获取"))
@sv_fetch.on_rex(r"(?i)^[fb]go[数s][据j][获h][取q][帮b][助z]$")
Expand Down
Loading

0 comments on commit ceee9be

Please sign in to comment.