import file with the same name as plugin

This commit is contained in:
lanvent
2023-03-12 12:57:27 +08:00
parent d9b902f6ee
commit 73de429af1
2 changed files with 7 additions and 7 deletions

View File

@@ -11,11 +11,11 @@ class Hello(Plugin):
super().__init__()
self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context
# self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context
logger.info("[hello] inited")
logger.info("[Hello] inited")
def on_handle_context(self, e_context: EventContext):
logger.debug("on_handle_context. content: %s" % e_context['context']['content'])
logger.debug("[Hello] on_handle_context. content: %s" % e_context['context']['content'])
if e_context['context']['content'] == "Hello":
e_context['reply']['type'] = "TEXT"