plugins: add helpp command for godcmd

This commit is contained in:
lanvent
2023-03-24 22:37:48 +08:00
parent 2f78c072d7
commit 30aedf04d7
7 changed files with 36 additions and 6 deletions

View File

@@ -80,4 +80,7 @@ class Dungeon(Plugin):
prompt = self.games[sessionid].action(content)
e_context['context'].type = ContextType.TEXT
e_context['context'].content = prompt
e_context.action = EventAction.CONTINUE
e_context.action = EventAction.BREAK # 事件结束不跳过处理context的默认逻辑
def get_help_text(self, **kwargs):
help_text = "输入\"$开始冒险 {背景故事}\"来以{背景故事}开始一个地牢游戏,之后你的所有消息会帮助我来完善这个故事。输入\"$停止冒险 \"可以结束游戏。"
return help_text