mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
fix: 啊对对对插件错误 (#187)
This commit is contained in:
parent
aa28b5aead
commit
5044f757fb
|
@ -3,7 +3,7 @@ import random
|
|||
from mirai import Plain
|
||||
|
||||
from pkg.plugin.models import *
|
||||
from pkg.plugin.host import EventContext
|
||||
from pkg.plugin.host import EventContext, PluginHost
|
||||
|
||||
"""
|
||||
私聊或群聊消息为以下列出的一些冒犯性词语时,自动回复__random_reply__中的一句话
|
||||
|
@ -38,6 +38,7 @@ class AdddPlugin(Plugin):
|
|||
|
||||
# 阻止向接口获取回复
|
||||
event.prevent_default()
|
||||
event.prevent_postorder()
|
||||
|
||||
def __del__(self):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user