From 870aba056017a8b9822dc0ae4313e156ad7d7a17 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Sun, 15 Jan 2023 22:39:28 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E5=88=A0=E9=99=A4=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/example/__init__.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 plugins/example/__init__.py diff --git a/plugins/example/__init__.py b/plugins/example/__init__.py deleted file mode 100644 index 7a04a088..00000000 --- a/plugins/example/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -import pkg.plugin.models as models -from pkg.plugin.host import * - - -@models.register(name="ExamplePlugin", description="用于展示QChatGPT插件支持功能的插件", version="0.0.1", author="RockChinQ") -class ExamplePlugin(models.Plugin): - - def __init__(self): - pass - # - # @models.on(models.PersonMessageReceived) - # def on_person_message_received(self, host: PluginHost, event: EventContext, **kwargs): - # """收到个人消息时触发""" - # host.send_person_message(kwargs['sender_id'], "你好,我是一个插件") - # event.prevent_default() - - @models.on(models.KeySwitched) - def on_key_switched(self, host: PluginHost, event: EventContext, **kwargs): - """按键事件""" - host.send_person_message(1010553892, "按键事件") - - def __del__(self): - pass