├── .gitignore ├── DOCKER_DEPLOY.md ├── Dockerfile ├── README.md ├── app.py ├── bot ├── Coze │ ├── bot.py │ ├── conversation_manager.py │ └── user_session.py ├── bot.py ├── bot_factory.py └── session_manager.py ├── bridge ├── bridge.py ├── context.py └── reply.py ├── channel ├── channel.py ├── channel_factory.py ├── chat_channel.py ├── chat_message.py └── gewechat │ ├── README.md │ ├── gewechat_channel.py │ └── gewechat_message.py ├── common ├── const.py ├── dequeue.py ├── expired_dict.py ├── log.py ├── memory.py ├── package_manager.py ├── singleton.py ├── sorted_dict.py ├── time_check.py ├── tmp_dir.py ├── token_bucket.py └── utils.py ├── config-template.json ├── config.py ├── docker-compose.yml ├── docs ├── coze_icon.png └── ico.ico ├── lib └── gewechat │ ├── __init__.py │ ├── api │ ├── __init__.py │ ├── contact_api.py │ ├── download_api.py │ ├── favor_api.py │ ├── group_api.py │ ├── label_api.py │ ├── login_api.py │ ├── message_api.py │ └── personal_api.py │ ├── client.py │ └── util │ ├── __init__.py │ ├── http_util.py │ └── terminal_printer.py ├── plugins ├── README.md ├── __init__.py ├── event.py ├── finish │ ├── __init__.py │ └── finish.py ├── group │ ├── __init__.py │ └── inviteMember.py ├── hello │ ├── README.md │ ├── __init__.py │ ├── config.json.template │ └── hello.py ├── plugin.py ├── plugin_manager.py ├── plugins.json └── set_voice │ ├── __init__.py │ └── set_voice.py ├── requirements.txt ├── voice ├── ali │ ├── ali_api.py │ ├── ali_voice.py │ └── config.json.template ├── audio_convert.py ├── azure │ ├── azure_voice.py │ └── config.json.template ├── baidu │ ├── README.md │ ├── baidu_voice.py │ └── config.json.template ├── bailian │ └── bailian_voice.py ├── coze │ └── coze_voice.py ├── dify │ └── dify_voice.py ├── edge │ └── edge_voice.py ├── elevent │ └── elevent_voice.py ├── factory.py ├── google │ └── google_voice.py ├── linkai │ └── linkai_voice.py ├── openai │ └── openai_voice.py ├── pytts │ └── pytts_voice.py ├── voice.py └── xunfei │ ├── config.json.template │ ├── xunfei_asr.py │ ├── xunfei_tts.py │ └── xunfei_voice.py └── web ├── Home.py └── pages └── 01_机器人配置.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/.gitignore -------------------------------------------------------------------------------- /DOCKER_DEPLOY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/DOCKER_DEPLOY.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/README.md -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/app.py -------------------------------------------------------------------------------- /bot/Coze/bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/Coze/bot.py -------------------------------------------------------------------------------- /bot/Coze/conversation_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/Coze/conversation_manager.py -------------------------------------------------------------------------------- /bot/Coze/user_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/Coze/user_session.py -------------------------------------------------------------------------------- /bot/bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/bot.py -------------------------------------------------------------------------------- /bot/bot_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/bot_factory.py -------------------------------------------------------------------------------- /bot/session_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bot/session_manager.py -------------------------------------------------------------------------------- /bridge/bridge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bridge/bridge.py -------------------------------------------------------------------------------- /bridge/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bridge/context.py -------------------------------------------------------------------------------- /bridge/reply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/bridge/reply.py -------------------------------------------------------------------------------- /channel/channel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/channel.py -------------------------------------------------------------------------------- /channel/channel_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/channel_factory.py -------------------------------------------------------------------------------- /channel/chat_channel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/chat_channel.py -------------------------------------------------------------------------------- /channel/chat_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/chat_message.py -------------------------------------------------------------------------------- /channel/gewechat/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/gewechat/README.md -------------------------------------------------------------------------------- /channel/gewechat/gewechat_channel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/gewechat/gewechat_channel.py -------------------------------------------------------------------------------- /channel/gewechat/gewechat_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/channel/gewechat/gewechat_message.py -------------------------------------------------------------------------------- /common/const.py: -------------------------------------------------------------------------------- 1 | # bot_type 2 | COZE = "coze" 3 | 4 | -------------------------------------------------------------------------------- /common/dequeue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/dequeue.py -------------------------------------------------------------------------------- /common/expired_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/expired_dict.py -------------------------------------------------------------------------------- /common/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/log.py -------------------------------------------------------------------------------- /common/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/memory.py -------------------------------------------------------------------------------- /common/package_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/package_manager.py -------------------------------------------------------------------------------- /common/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/singleton.py -------------------------------------------------------------------------------- /common/sorted_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/sorted_dict.py -------------------------------------------------------------------------------- /common/time_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/time_check.py -------------------------------------------------------------------------------- /common/tmp_dir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/tmp_dir.py -------------------------------------------------------------------------------- /common/token_bucket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/token_bucket.py -------------------------------------------------------------------------------- /common/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/common/utils.py -------------------------------------------------------------------------------- /config-template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/config-template.json -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/config.py -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/coze_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/docs/coze_icon.png -------------------------------------------------------------------------------- /docs/ico.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/docs/ico.ico -------------------------------------------------------------------------------- /lib/gewechat/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/__init__.py -------------------------------------------------------------------------------- /lib/gewechat/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/gewechat/api/contact_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/contact_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/download_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/download_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/favor_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/favor_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/group_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/group_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/label_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/label_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/login_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/login_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/message_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/message_api.py -------------------------------------------------------------------------------- /lib/gewechat/api/personal_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/api/personal_api.py -------------------------------------------------------------------------------- /lib/gewechat/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/client.py -------------------------------------------------------------------------------- /lib/gewechat/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/gewechat/util/http_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/util/http_util.py -------------------------------------------------------------------------------- /lib/gewechat/util/terminal_printer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/lib/gewechat/util/terminal_printer.py -------------------------------------------------------------------------------- /plugins/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/README.md -------------------------------------------------------------------------------- /plugins/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/__init__.py -------------------------------------------------------------------------------- /plugins/event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/event.py -------------------------------------------------------------------------------- /plugins/finish/__init__.py: -------------------------------------------------------------------------------- 1 | from .finish import * 2 | -------------------------------------------------------------------------------- /plugins/finish/finish.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/finish/finish.py -------------------------------------------------------------------------------- /plugins/group/__init__.py: -------------------------------------------------------------------------------- 1 | from .inviteMember import * -------------------------------------------------------------------------------- /plugins/group/inviteMember.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/group/inviteMember.py -------------------------------------------------------------------------------- /plugins/hello/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/hello/README.md -------------------------------------------------------------------------------- /plugins/hello/__init__.py: -------------------------------------------------------------------------------- 1 | from .hello import * 2 | -------------------------------------------------------------------------------- /plugins/hello/config.json.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/hello/config.json.template -------------------------------------------------------------------------------- /plugins/hello/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/hello/hello.py -------------------------------------------------------------------------------- /plugins/plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/plugin.py -------------------------------------------------------------------------------- /plugins/plugin_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/plugin_manager.py -------------------------------------------------------------------------------- /plugins/plugins.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/plugins.json -------------------------------------------------------------------------------- /plugins/set_voice/__init__.py: -------------------------------------------------------------------------------- 1 | from .set_voice import * -------------------------------------------------------------------------------- /plugins/set_voice/set_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/plugins/set_voice/set_voice.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/requirements.txt -------------------------------------------------------------------------------- /voice/ali/ali_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/ali/ali_api.py -------------------------------------------------------------------------------- /voice/ali/ali_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/ali/ali_voice.py -------------------------------------------------------------------------------- /voice/ali/config.json.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/ali/config.json.template -------------------------------------------------------------------------------- /voice/audio_convert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/audio_convert.py -------------------------------------------------------------------------------- /voice/azure/azure_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/azure/azure_voice.py -------------------------------------------------------------------------------- /voice/azure/config.json.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/azure/config.json.template -------------------------------------------------------------------------------- /voice/baidu/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/baidu/README.md -------------------------------------------------------------------------------- /voice/baidu/baidu_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/baidu/baidu_voice.py -------------------------------------------------------------------------------- /voice/baidu/config.json.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/baidu/config.json.template -------------------------------------------------------------------------------- /voice/bailian/bailian_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/bailian/bailian_voice.py -------------------------------------------------------------------------------- /voice/coze/coze_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/coze/coze_voice.py -------------------------------------------------------------------------------- /voice/dify/dify_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/dify/dify_voice.py -------------------------------------------------------------------------------- /voice/edge/edge_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/edge/edge_voice.py -------------------------------------------------------------------------------- /voice/elevent/elevent_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/elevent/elevent_voice.py -------------------------------------------------------------------------------- /voice/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/factory.py -------------------------------------------------------------------------------- /voice/google/google_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/google/google_voice.py -------------------------------------------------------------------------------- /voice/linkai/linkai_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/linkai/linkai_voice.py -------------------------------------------------------------------------------- /voice/openai/openai_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/openai/openai_voice.py -------------------------------------------------------------------------------- /voice/pytts/pytts_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/pytts/pytts_voice.py -------------------------------------------------------------------------------- /voice/voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/voice.py -------------------------------------------------------------------------------- /voice/xunfei/config.json.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/xunfei/config.json.template -------------------------------------------------------------------------------- /voice/xunfei/xunfei_asr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/xunfei/xunfei_asr.py -------------------------------------------------------------------------------- /voice/xunfei/xunfei_tts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/xunfei/xunfei_tts.py -------------------------------------------------------------------------------- /voice/xunfei/xunfei_voice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/voice/xunfei/xunfei_voice.py -------------------------------------------------------------------------------- /web/Home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/web/Home.py -------------------------------------------------------------------------------- /web/pages/01_机器人配置.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JC0v0/Coze-on-Wechat/HEAD/web/pages/01_机器人配置.py --------------------------------------------------------------------------------