fix: support custom episode offset expressions

This commit is contained in:
jxxghp
2026-06-26 14:15:29 +08:00
parent 7d2a730b0c
commit bb9b6ec5d0
4 changed files with 308 additions and 217 deletions

View File

@@ -352,6 +352,14 @@ class Command(metaclass=Singleton):
"""
获取命令列表
"""
if not self._commands:
with self._rlock:
if not self._commands:
self._commands = {
**self._preset_commands,
**self._plugin_commands,
**self._other_commands,
}
return self._commands
def get(self, cmd: str) -> Any: