[{"data":1,"prerenderedAt":229},["ShallowReactive",2],{"\u002F08_chatgpt_on_wechat":3,"surround-\u002F08_chatgpt_on_wechat":218},{"id":4,"title":5,"body":6,"categories":193,"date":195,"description":17,"draft":196,"extension":197,"image":198,"meta":199,"navigation":202,"path":203,"permalink":198,"published":198,"readingTime":204,"recommend":198,"references":198,"seo":209,"sitemap":210,"stem":211,"tags":212,"type":216,"updated":198,"__hash__":217},"content\u002Fposts\u002F08_chatgpt_on_wechat项目插件推荐.md","chatgpt_on_wechat项目插件推荐",{"type":7,"value":8,"toc":179},"minimark",[9,14,18,22,38,41,50,53,57,68,74,78,81,83,91,95,98,106,110,113,118,122,125,129,132,135,138,144,147,155,158,173,176],[10,11,13],"h1",{"id":12},"chatgpt_on_wechat-插件系统","chatgpt_on_wechat 插件系统",[15,16,17],"p",{},"chatgpt_on_wechat 是一个基于ChatGPT的微信机器人项目，支持丰富的插件扩展。",[19,20,21],"h2",{"id":21},"功能特点",[23,24,25,29,32,35],"ul",{},[26,27,28],"li",{},"支持ChatGPT3.5\u002F4.0 API",[26,30,31],{},"支持企业微信、个人微信",[26,33,34],{},"支持多种对话模式",[26,36,37],{},"完善的插件系统",[19,39,40],{"id":40},"官方地址",[15,42,43,44],{},"GitHub: ",[45,46,47],"a",{"href":47,"rel":48},"https:\u002F\u002Fgithub.com\u002Fzhayujie\u002Fchatgpt-on-wechat",[49],"nofollow",[10,51,52],{"id":52},"插件推荐",[19,54,56],{"id":55},"_1-weather-plugin-天气查询","1. weather-plugin 天气查询",[58,59,65],"pre",{"className":60,"code":62,"language":63,"meta":64},[61],"language-bash","git clone https:\u002F\u002Fgithub.com\u002Fxxx\u002Fweather-plugin.git plugins\u002Fweather\n","bash","",[66,67,62],"code",{"__ignoreMap":64},[15,69,70,71],{},"使用：",[66,72,73],{"code":73},"@机器人 天气 北京",[19,75,77],{"id":76},"_2-translate-plugin-翻译插件","2. translate-plugin 翻译插件",[15,79,80],{},"支持多语言互译。",[15,82,70],{},[58,84,89],{"className":85,"code":87,"language":88},[86],"language-text","@机器人 翻译 Hello World\n@机器人 日译中 今日は良い天気です\n","text",[66,90,87],{"__ignoreMap":64},[19,92,94],{"id":93},"_3-rss-plugin-rss订阅","3. rss-plugin RSS订阅",[15,96,97],{},"订阅RSS源，自动推送更新。",[58,99,104],{"className":100,"code":102,"language":103,"meta":64},[101],"language-yaml","rss:\n  feeds:\n    - name: 科技资讯\n      url: https:\u002F\u002Ffeeds.example.com\u002Ftech.xml\n      interval: 3600\n","yaml",[66,105,102],{"__ignoreMap":64},[19,107,109],{"id":108},"_4-image-plugin-图片生成","4. image-plugin 图片生成",[15,111,112],{},"集成Midjourney、DALL-E等图片生成服务。",[15,114,70,115],{},[66,116,117],{"code":117},"@机器人 画一只可爱的猫咪",[19,119,121],{"id":120},"_5-admin-plugin-管理员插件","5. admin-plugin 管理员插件",[15,123,124],{},"管理员命令，管理群聊和用户。",[19,126,128],{"id":127},"_6-token-plugin-token管理","6. token-plugin Token管理",[15,130,131],{},"查看和管理API使用量。",[10,133,134],{"id":134},"插件开发",[19,136,137],{"id":137},"插件结构",[58,139,142],{"className":140,"code":141,"language":88},[86],"plugins\u002F\n  my_plugin\u002F\n    __init__.py      # 插件入口\n    config.yaml      # 插件配置\n    README.md        # 插件说明\n",[66,143,141],{"__ignoreMap":64},[19,145,146],{"id":146},"编写插件",[58,148,153],{"className":149,"code":151,"language":152,"meta":64},[150],"language-python","from bridge.reply import Reply ,  ReplyType\nfrom plugins import Plugin\n\nclass MyPlugin(Plugin):\n    def __init__(self):\n        super().__init__()\n        self.handlers[Event.on_handle_context] = self.on_handle_context\n\n    def on_handle_context(self ,  e_context):\n        if e_context['context'].content == 'hello':\n            reply = Reply(ReplyType.TEXT ,  'Hello!')\n            e_context['reply'] = reply\n","python",[66,154,151],{"__ignoreMap":64},[10,156,157],{"id":157},"注意事项",[159,160,161,164,167,170],"ol",{},[26,162,163],{},"确保插件版本与主程序兼容",[26,165,166],{},"部分插件会消耗API配额",[26,168,169],{},"谨慎授权第三方插件",[26,171,172],{},"过多插件可能影响响应速度",[10,174,175],{"id":175},"总结",[15,177,178],{},"chatgpt_on_wechat的插件生态丰富，通过合理使用插件，可以大幅提升机器人的实用性和可玩性。",{"title":64,"searchDepth":180,"depth":180,"links":181},4,[182,184,185,186,187,188,189,190,191,192],{"id":21,"depth":183,"text":21},2,{"id":40,"depth":183,"text":40},{"id":55,"depth":183,"text":56},{"id":76,"depth":183,"text":77},{"id":93,"depth":183,"text":94},{"id":108,"depth":183,"text":109},{"id":120,"depth":183,"text":121},{"id":127,"depth":183,"text":128},{"id":137,"depth":183,"text":137},{"id":146,"depth":183,"text":146},[194],"AI","2025-07-20 14:15:46",false,"md",null,{"slug":200,"slots":201},"p2r8s5",{},true,"\u002F08_chatgpt_on_wechat",{"text":205,"minutes":206,"time":207,"words":208},"2 min read",1.735,104100,347,{"title":5,"description":17},{"loc":203},"posts\u002F08_chatgpt_on_wechat项目插件推荐",[213,214,215],"chatgpt","微信机器人","插件","tech","zs4_IqEl-ncIsJoh1E0pFgWgTkmqNJySVq1EXufcdFo",[219,224],{"title":220,"path":221,"stem":222,"date":223,"type":216,"children":-1},"将讯飞星火大模型接入企业微信","\u002F06_","posts\u002F06_将讯飞星火大模型接入企业微信","2025-06-15 09:23:46",{"title":225,"path":226,"stem":227,"date":228,"type":216,"children":-1},"600元装机","\u002F09_600yuan","posts\u002F09_600元装机","2025-08-10 20:30:46",1777890742276]