tos增加一种命令前缀

This commit is contained in:
2022-07-25 04:10:23 +08:00
parent d6449ddf8c
commit e5abc99590
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ from ..Utils.Request import request
from ..Utils.MessageAnalyzer import handleStatsQueryMessage
tosStats = on_regex(pattern=r'^tos查|^tostats|^茶服查|^茶服stats',
tosStats = on_regex(pattern=r'^tos查|^tostats|^tosstats|^茶服查|^茶服stats',
flags=I, permission=GROUP)

View File

@@ -23,7 +23,7 @@ async def handleBindMessage(message: str, gameType: str) -> tuple[str | None, tu
async def handleStatsQueryMessage(message: str, gameType: str) -> tuple[str | None, tuple]:
'''返回值为tuple[gameType, tuple[message, user]]'''
_CMD_ALIASES = {'IO': ['io查', 'iostats'],
'TOS': ['tos查', 'tostats', '茶服查', '茶服stats'],
'TOS': ['tos查', 'tostats', 'tosstats', '茶服查', '茶服stats'],
'TOP': ['top查', 'topstats']}
_ME = ['', '自己', '我等', '卑人', '', '老身', '', '老娘', '本姑娘', '本大爷',
'鄙人', '寡人', '小生', '贫僧', '本人', '', '', '', '', '', 'me']