Skip to content

Commit

Permalink
修改help.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnyo666 committed Nov 25, 2024
1 parent db4d743 commit fd87a9b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions apps/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ const app = {

export const rule = {
help: {
reg: /^#?steam(插件|plugin)?(帮助|菜单|help)$/i,
reg: /^#?(课表|class)(插件|plugin)?(帮助|菜单|help)$/i,
fnc: help
}
// version: {
// reg: /^#?steam(插件|plugin)?(版本|version)$/i,
// fnc: version
// }
}

export const helpApp = new App(app, rule).create()
Expand Down Expand Up @@ -55,13 +51,3 @@ async function help (e) {
}
return true
}

// eslint-disable-next-line no-unused-vars
async function version (e) {
const img = await Render.render('help/version-info', {
currentVersion: Version.version,
changelogs: Version.changelogs,
scale: 1.2
})
return await e.reply(img)
}

0 comments on commit fd87a9b

Please sign in to comment.