-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 更新 CoolQBot-env 到 0.2.4 * 初步支持从 FFlogs API 计算输出百分比 * 更新伊甸的数据,并支持 adps * 添加每天的缓存,并支持 pdps * 定时提前缓存数据 * 添加异常处理
- Loading branch information
Showing
7 changed files
with
207 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
nonebot==1.3.1 | ||
requests==2.22.0 | ||
apscheduler==3.6.1 | ||
apscheduler==3.6.3 | ||
jieba==0.39 | ||
python-dateutil==2.8.0 | ||
python-dateutil==2.8.1 | ||
msgpack==0.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,53 @@ | ||
""" 一些数据 | ||
""" | ||
boss_list = { | ||
(28, 1045): ['缇坦妮雅', '妖精', '极妖精', '妖灵王', '妖精王', '老婆', '10王'], | ||
(28, 1046): ['无瑕灵君', '肥宅', '极肥宅', '全能王'], | ||
(28, 1049): ['哈迪斯', '老公'] | ||
(1045, 0): ['提坦妮雅歼殛战', '缇坦妮雅', '妖精', '极妖精', '妖灵王', '妖精王', '老婆', '10王'], | ||
(1046, 0): ['无瑕灵君', '肥宅', '极肥宅', '全能王'], | ||
(1049, 0): ['哈迪斯', '老公'], | ||
(65, 100): ['至尊伊甸', 'E1', 'e1'], | ||
(66, 100): ['虚空行者','E2', 'e2'], | ||
(67, 100): ['利维亚桑','E3', 'e3'], | ||
(68, 100): ['泰坦','E4', 'e4'], | ||
(65, 0): ['至尊伊甸','E1S', 'e1s', 'E1s', 'e1S'], | ||
(66, 0): ['虚空行者','E2S', 'e2s', 'E2s', 'e2S'], | ||
(67, 0): ['利维亚桑','E3S', 'e3s', 'E3s', 'e3S'], | ||
(68, 0): ['泰坦','E4S', 'e4s', 'E4s', 'e4S'], | ||
} # yapf: disable | ||
|
||
job_list = { | ||
'Astrologian': ['占星术士', '占星'], | ||
'Bard': ['吟游诗人', '诗人'], | ||
'BlackMage': ['黑魔法师', '黑魔', '伏地魔', '永动机'], | ||
'Dancer': ['舞者', '舞娘'], | ||
'DarkKnight': ['暗黑骑士', '黑骑', '暗骑', 'DK'], | ||
'Dragoon': ['龙骑士', '龙骑', '躺尸龙', '擦炮工'], | ||
'Gunbreaker': ['绝枪战士', '绝枪', '枪刃', '枪决战士'], | ||
'Machinist': ['机工士', '机工'], | ||
'Monk': ['武僧', '扫地僧', '猴子', '和尚'], | ||
'Ninja': ['忍者', '兔忍', '火影'], | ||
'Paladin': ['骑士', '圣骑', '奶骑'], | ||
'RedMage': ['赤魔法师', '赤魔', '吃馍', '红色治疗'], | ||
'Samurai': ['武士', '侍'], | ||
'Scholar': ['学者', '小仙女', '死炎法师'], | ||
'Summoner': ['召唤师', '召唤'], | ||
'Warrior': ['战士', '战爹'], | ||
'WhiteMage': ['白魔法师', '白魔', '白膜', '投石机'], | ||
1: ['占星术士', '占星'], | ||
2: ['吟游诗人', '诗人'], | ||
3: ['黑魔法师', '黑魔', '伏地魔', '永动机'], | ||
4: ['暗黑骑士', '黑骑', '暗骑', 'DK'], | ||
5: ['龙骑士', '龙骑', '躺尸龙', '擦炮工'], | ||
6: ['机工士', '机工'], | ||
7: ['武僧', '扫地僧', '猴子', '和尚'], | ||
8: ['忍者', '兔忍', '火影'], | ||
9: ['骑士', '圣骑', '奶骑'], | ||
10: ['学者', '小仙女', '死炎法师'], | ||
11: ['召唤师', '召唤'], | ||
12: ['战士', '战爹'], | ||
13: ['白魔法师', '白魔', '白膜', '投石机'], | ||
14: ['赤魔法师', '赤魔', '吃馍', '红色治疗'], | ||
15: ['武士', '侍'], | ||
16: ['舞者', '舞娘'], | ||
17: ['绝枪战士', '绝枪', '枪刃', '枪决战士'], | ||
} # yapf: disable | ||
|
||
|
||
def get_boss_info(name): | ||
""" 根据昵称获取 boss 的 bucket 和 id | ||
""" 根据昵称获取 boss 的 ID 同时返回正式名称 | ||
""" | ||
for boss, nickname in boss_list.items(): | ||
for (boss_id, difficulty), nickname in boss_list.items(): | ||
if name in nickname: | ||
return boss, nickname[0] | ||
return (None, None), None | ||
return boss_id, difficulty, nickname[0] | ||
return None, None, None | ||
|
||
|
||
def get_job_name(name): | ||
""" 将中文称呼转换成英文称呼 | ||
""" 将中文昵称转换成具体的 ID 同时返回正式名称 | ||
""" | ||
for name_en, nickname in job_list.items(): | ||
for job_id, nickname in job_list.items(): | ||
if name in nickname: | ||
return name_en, nickname[0] | ||
return job_id, nickname[0] | ||
return None, None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" 异常 | ||
""" | ||
|
||
|
||
class DataException(Exception): | ||
""" 数据异常 | ||
""" | ||
pass | ||
|
||
|
||
class AuthException(Exception): | ||
""" 认证异常 | ||
""" | ||
pass |