fix: 将 ss+ 命令的注册方式从 RegisterHandler 修改为 RegisterFrontMatchHandler,以提高命令匹配的灵活性
This commit is contained in:
parent
8cfa931e40
commit
aa87e0aaa4
@ -27,7 +27,7 @@ func init() {
|
|||||||
handler.RegisterHelpInform("最新ss", "scoresaber", "查看您的最新游戏记录")
|
handler.RegisterHelpInform("最新ss", "scoresaber", "查看您的最新游戏记录")
|
||||||
handler.RegisterHandler("截ss", screenshotSS, constants.LEVEL_USER)
|
handler.RegisterHandler("截ss", screenshotSS, constants.LEVEL_USER)
|
||||||
handler.RegisterHelpInform("ss+n", "scoresaber", "区排名升高n位还需要打出多少pp")
|
handler.RegisterHelpInform("ss+n", "scoresaber", "区排名升高n位还需要打出多少pp")
|
||||||
handler.RegisterHandler("ss+", ssPlusN, constants.LEVEL_USER)
|
handler.RegisterFrontMatchHandler("ss+", ssPlusN, constants.LEVEL_USER)
|
||||||
// handler.RegisterHelpInform("截ss", "scoresaber", "scoresaber主页截图")
|
// handler.RegisterHelpInform("截ss", "scoresaber", "scoresaber主页截图")
|
||||||
// handler.RegisterHandler("jss", screenshotSS, constants.LEVEL_USER)
|
// handler.RegisterHandler("jss", screenshotSS, constants.LEVEL_USER)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user