2023-02-09 18:54:51 +00:00
|
|
|
|
import { App } from '../components/index.js'
|
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'
|
|
|
|
|
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'
|
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({
|
|
|
|
|
profileDetail: {
|
|
|
|
|
rule: /^#*([^#]+)\s*(详细|详情|面板|面版|圣遗物|伤害[1-7]?)\s*(\d{9})*(.*[换变改].*)?$/,
|
|
|
|
|
fn: profileDetail,
|
|
|
|
|
name: '角色面板'
|
|
|
|
|
},
|
2022-11-08 22:04:08 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileChange: {
|
|
|
|
|
rule: /^#.+换.+$/,
|
|
|
|
|
fn: profileDetail,
|
|
|
|
|
name: '角色面板计算'
|
|
|
|
|
},
|
2022-11-11 21:57:13 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
groupProfile: {
|
|
|
|
|
rule: /^#(群|群内)?(排名|排行)?(最强|最高|最高分|最牛|第一)+.+/,
|
|
|
|
|
fn: groupRank,
|
|
|
|
|
name: '群内最强'
|
|
|
|
|
},
|
2022-11-15 20:07:21 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
resetRank: {
|
|
|
|
|
rule: /^#(重置|重设)(.*)(排名|排行)$/,
|
|
|
|
|
fn: resetRank,
|
|
|
|
|
name: '重置排名'
|
|
|
|
|
},
|
2023-01-17 18:40:17 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
refreshRank: {
|
|
|
|
|
rule: /^#(刷新|更新|重新加载)(群内|群|全部)*(排名|排行)$/,
|
|
|
|
|
fn: refreshRank,
|
|
|
|
|
name: '重置排名'
|
|
|
|
|
},
|
2022-11-11 21:57:13 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
manageRank: {
|
|
|
|
|
rule: /^#(开启|打开|启用|关闭|禁用)(群内|群|全部)*(排名|排行)$/,
|
|
|
|
|
fn: manageRank,
|
|
|
|
|
name: '打开关闭'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
rankList: {
|
|
|
|
|
rule: /^#(群|群内)?.+(排名|排行)(榜)?$/,
|
|
|
|
|
fn: groupRank,
|
|
|
|
|
name: '面板排名榜'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
artisList: {
|
|
|
|
|
rule: /^#圣遗物列表\s*(\d{9})?$/,
|
|
|
|
|
fn: profileArtisList,
|
|
|
|
|
name: '面板圣遗物列表'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileList: {
|
|
|
|
|
rule: /^#(面板角色|角色面板|面板)(列表)?\s*(\d{9})?$/,
|
|
|
|
|
fn: ProfileList.render,
|
|
|
|
|
name: '面板角色列表',
|
|
|
|
|
desc: '查看当前已获取面板数据的角色列表'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileStat: {
|
|
|
|
|
rule: /^#(面板|喵喵|角色|武器|天赋|技能|圣遗物)?练度统计$/,
|
2023-02-13 20:43:14 +00:00
|
|
|
|
fn: ProfileStat.stat,
|
2023-02-13 19:47:22 +00:00
|
|
|
|
name: '面板练度统计'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
avatarList: {
|
|
|
|
|
rule: /^(#(角色|查询|查询角色|角色查询|人物)[ |0-9]*$)|(^(#*uid|#*UID)\+*[1|2|5-9][0-9]{8}$)|(^#[\+|+]*[1|2|5-9][0-9]{8})/,
|
2023-02-13 20:43:14 +00:00
|
|
|
|
fn: ProfileStat.avatarList,
|
2023-02-13 19:47:22 +00:00
|
|
|
|
name: '角色查询'
|
|
|
|
|
},
|
2022-09-17 21:24:04 +00:00
|
|
|
|
|
2023-02-13 19:47:22 +00:00
|
|
|
|
profileHelp: {
|
|
|
|
|
rule: /^#(角色|换|更换)?面[板版]帮助$/,
|
|
|
|
|
fn: profileHelp,
|
|
|
|
|
name: '角色面板帮助'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
enemyLv: {
|
|
|
|
|
rule: /^#(敌人|怪物)等级\s*\d{1,3}\s*$/,
|
|
|
|
|
fn: enemyLv,
|
|
|
|
|
describe: '【#角色】 设置伤害计算中目标敌人的等级'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
profileRefresh: {
|
|
|
|
|
rule: /^#(全部面板更新|更新全部面板|获取游戏角色详情|更新面板|面板更新)\s*(\d{9})?$/,
|
|
|
|
|
fn: ProfileList.refresh,
|
|
|
|
|
describe: '【#角色】 获取游戏橱窗详情数据'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
uploadImg: {
|
|
|
|
|
rule: /^#?\s*(?:上传|添加)(.+)(?:面板图)\s*$/,
|
|
|
|
|
fn: uploadCharacterImg,
|
|
|
|
|
describe: '【#上传刻晴面板图】 上传角色面板图'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
delProfile: {
|
|
|
|
|
rule: /^#?\s*(?:移除|清除|删除)(.+)(?:面板图)(\d){1,}\s*$/,
|
|
|
|
|
fn: delProfileImg,
|
|
|
|
|
describe: '【#删除刻晴面板图1】 删除指定角色面板图(序号)'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
profileImgList: {
|
|
|
|
|
rule: /^#?\s*(.+)(?:面板图列表)\s*$/,
|
|
|
|
|
fn: profileImgList,
|
|
|
|
|
describe: '【#刻晴面板图列表】 删除指定角色面板图(序号)'
|
|
|
|
|
}
|
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
|