Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iuiaoin committed Jul 15, 2023
1 parent 8b22a90 commit 4a03f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

## 📝 更新日志

> **2023.07.13:** 引入`插件系统`,让 gptbot 拥有更多可能性,且易于扩展 [#46](https://github.com/iuiaoin/wechat-gptbot/pull/46). 这是第一个好玩的插件: [tiktok](https://github.com/iuiaoin/plugin_tiktok), 赶快来尝试一下吧!另请参阅此处的[文档](plugins/README.md)来了解用法和如何贡献~
> **2023.07.13:** 引入`插件系统`,让 gptbot 拥有更多可能性,且易于扩展 [#46](https://github.com/iuiaoin/wechat-gptbot/pull/46). 这是第一个好玩的插件: [tiktok](https://github.com/iuiaoin/plugin_tiktok), 赶快来尝试一下吧! 另请参阅此处的[文档](plugins/README.md)来了解用法和如何贡献~
## 🚀 快速开始

Expand Down
6 changes: 3 additions & 3 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def did_receive_message(self, event: Event):

def will_generate_reply(self, event: Event):
query = event.context.query
if query == self.config.get("command"):
event.reply = self.reply() # modify the reply
event.bypass() # bypass the plugin chain and default logic
if query == self.config.get("command"): # instance will get plugin configs when inits
event.reply = self.reply() # modify the reply
event.bypass() # bypass the plugin chain and default logic

def will_send_reply(self, event: Event):
pass
Expand Down

0 comments on commit 4a03f9a

Please sign in to comment.