2023-02-13 19:47:22 +00:00
|
|
|
|
import { profileHelp } from './profile/ProfileCommon.js'
|
2023-02-09 18:54:51 +00:00
|
|
|
|
import { profileArtisList } from './profile/ProfileArtis.js'
|
2023-02-21 19:49:49 +00:00
|
|
|
|
import ProfileDetail from './profile/ProfileDetail.js'
|
2023-02-13 20:43:14 +00:00
|
|
|
|
import ProfileStat from './profile/ProfileStat.js'
|
2023-02-13 19:47:22 +00:00
|
|
|
|
import ProfileList from './profile/ProfileList.js'
|
2022-12-03 21:17:07 +00:00
|
|
|
|
import { uploadCharacterImg, delProfileImg, profileImgList } from './character/ImgUpload.js'
|
2023-01-17 18:40:17 +00:00
|
|
|
|
import { enemyLv } from './profile/ProfileUtils.js'
|
|
|
|
|
import { groupRank, resetRank, refreshRank, manageRank } from './profile/ProfileRank.js'
|
2023-03-07 17:52:11 +00:00
|
|
|
|
import { App, Cfg } from '#miao'
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
|
|
|
|
let app = App.init({
|
|
|
|
|
id: 'profile',
|
|
|
|
|
name: '角色面板'
|
|
|
|
|
})
|
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
app.reg({
|
2023-05-14 20:19:33 +00:00
|
|
|
|
profileList: {
|
|
|
|
|
name: '面板角色列表',
|
|
|
|
|
desc: '查看当前已获取面板数据的角色列表',
|
|
|
|
|
fn: ProfileList.render,
|
|
|
|
|
rule: /^#(星铁|原神)?(面板角色|角色面板|面板)(列表)?\s*(\d{9})?$/
|
|
|
|
|
},
|
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileDetail: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '角色面板',
|
2023-02-21 19:49:49 +00:00
|
|
|
|
fn: ProfileDetail.detail,
|
2023-06-11 19:20:56 +00:00
|
|
|
|
rule: /^#*([^#]+)\s*(详细|详情|面板|面版|圣遗物|武器[1-7]?|伤害([1-9]+\d*)?)\s*(\d{9})*(.*[换变改].*)?$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-11-08 22:04:08 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileChange: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '角色面板计算',
|
2023-02-21 19:49:49 +00:00
|
|
|
|
fn: ProfileDetail.detail,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#.+换.+$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-11-11 21:57:13 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
groupProfile: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '群内最强',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: groupRank,
|
2023-02-19 04:05:42 +00:00
|
|
|
|
rule: /^#(群|群内)?(排名|排行)?(最强|最高|最高分|最牛|第一|极限)+.+/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-11-15 20:07:21 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
resetRank: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '重置排名',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: resetRank,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(重置|重设)(.*)(排名|排行)$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2023-01-17 18:40:17 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
refreshRank: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '重置排名',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: refreshRank,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-11-11 21:57:13 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
manageRank: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '打开关闭',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: manageRank,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(开启|打开|启用|关闭|禁用)(群内|群|全部)*(排名|排行)$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
rankList: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '面板排名榜',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: groupRank,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(群|群内)?.+(排名|排行)(榜)?$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
artisList: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '面板圣遗物列表',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: profileArtisList,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#圣遗物列表\s*(\d{9})?$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileStat: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '面板练度统计',
|
2023-02-13 20:43:14 +00:00
|
|
|
|
fn: ProfileStat.stat,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(面板|喵喵)练度统计$/,
|
2023-11-05 19:18:49 +00:00
|
|
|
|
yzRule: /^#*(我的)*(武器|角色|练度|五|四|5|4|星)+(汇总|统计|列表)(force|五|四|5|4|星)*[ |0-9]*$/,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
yzCheck: () => Cfg.get('profileStat', false)
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-11-05 19:18:49 +00:00
|
|
|
|
talentStat: {
|
|
|
|
|
name: '天赋统计',
|
|
|
|
|
fn: ProfileStat.stat,
|
|
|
|
|
rule: /^#*(我的)*(今日|今天|明日|明天|周.*)?(五|四|5|4|星)?(技能|天赋)+(汇总|统计|列表)?[ |0-9]*$/,
|
|
|
|
|
},
|
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
avatarList: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '角色查询',
|
2023-02-13 20:43:14 +00:00
|
|
|
|
fn: ProfileStat.avatarList,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#喵喵(角色|查询)[ |0-9]*$/,
|
2023-11-05 19:18:49 +00:00
|
|
|
|
yzRule: /^(#(五|四|5|4|星)*(角色|查询|查询角色|角色查询|人物)[ |0-9]*$)|(^(#*uid|#*UID)\+*[1|2|5-9][0-9]{8}$)|(^#[\+|+]*[1|2|5-9][0-9]{8})/,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
yzCheck: () => Cfg.get('avatarList', false)
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-11-05 19:18:49 +00:00
|
|
|
|
refreshTalent: {
|
|
|
|
|
name: '强制刷新天赋',
|
|
|
|
|
fn: ProfileStat.refreshTalent,
|
|
|
|
|
rule: /^#(强制)?(刷新|更新)(所有|角色)*(天赋|技能)$/
|
|
|
|
|
},
|
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileHelp: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '角色面板帮助',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: profileHelp,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(角色|换|更换)?面[板版]帮助$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
enemyLv: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '敌人等级',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: enemyLv,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
describe: '【#角色】 设置伤害计算中目标敌人的等级',
|
|
|
|
|
rule: /^#(敌人|怪物)等级\s*\d{1,3}\s*$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
profileRefresh: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '面板更新',
|
|
|
|
|
describe: '【#角色】 获取游戏橱窗详情数据',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: ProfileList.refresh,
|
2023-05-14 20:19:33 +00:00
|
|
|
|
rule: /^#(星铁|原神)?(全部面板更新|更新全部面板|获取游戏角色详情|更新面板|面板更新)\s*(\d{9})?$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
uploadImg: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '上传面板图',
|
|
|
|
|
describe: '【#上传刻晴面板图】 上传角色面板图',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: uploadCharacterImg,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#?\s*(?:上传|添加)(.+)(?:面板图)\s*$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
delProfile: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '删除面板图',
|
|
|
|
|
describe: '【#删除刻晴面板图1】 删除指定角色面板图(序号)',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: delProfileImg,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#?\s*(?:移除|清除|删除)(.+)(?:面板图)(\d){1,}\s*$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
profileImgList: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '面板图列表',
|
|
|
|
|
describe: '【#刻晴面板图列表】 删除指定角色面板图(序号)',
|
2023-02-13 19:47:22 +00:00
|
|
|
|
fn: profileImgList,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#?\s*(.+)(?:面板图列表)\s*$/
|
2023-02-17 20:42:05 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
profileDel: {
|
2023-02-18 10:29:09 +00:00
|
|
|
|
name: '删除面板',
|
|
|
|
|
describe: '【#角色】 删除游戏橱窗详情数据',
|
2023-02-17 20:42:05 +00:00
|
|
|
|
fn: ProfileList.del,
|
2023-02-18 10:29:09 +00:00
|
|
|
|
rule: /^#(删除全部面板|删除面板|删除面板数据)\s*(\d{9})?$/
|
2023-09-21 20:03:01 +00:00
|
|
|
|
},
|
|
|
|
|
|
2023-11-05 19:18:49 +00:00
|
|
|
|
profileReload: {
|
2023-09-21 20:03:01 +00:00
|
|
|
|
name: '重新加载面板',
|
2023-11-05 19:18:49 +00:00
|
|
|
|
fn: ProfileList.reload,
|
2023-09-21 20:03:01 +00:00
|
|
|
|
rule: /^#(星铁|原神)?(加载|重新加载|重载)面板\s*(\d{9})?$/
|
2023-02-13 19:47:22 +00:00
|
|
|
|
}
|
2022-12-03 19:45:50 +00:00
|
|
|
|
})
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2022-12-03 19:45:50 +00:00
|
|
|
|
export default app
|