fix: merge plugins to dev

This commit is contained in:
lanvent
2023-03-24 11:40:45 +08:00
parent 42f3f4403c
commit 52abe0893a
8 changed files with 45 additions and 27 deletions

View File

@@ -8,6 +8,7 @@ from config import conf
import plugins
from plugins import *
from common.log import logger
from common import const
# https://github.com/bupticybee/ChineseAiDungeonChatGPT
class StoryTeller():
@@ -51,7 +52,7 @@ class Dungeon(Plugin):
if e_context['context'].type != ContextType.TEXT:
return
bottype = Bridge().get_bot_type("chat")
if bottype != "chatGPT":
if bottype != const.CHATGPT:
return
bot = Bridge().get_bot("chat")
content = e_context['context'].content[:]