CozeDiscord
A way to use chatgpt4 for free by proxying DiscordBot to talk to CozeBot.
Install / Use
/learn @Nanomoa/CozeDiscordREADME
CozeDiscord
A way to use ChatGpt4 for free by simulating communication behavior with CozeBot through a proxy Discord user.
</div>
Description
CozeDiscord, a project that allows you to use chatgpt4 for free. Coze is a project that allows us to use chatgpt4 models for free. After creating a new bot in Coze, you can publish it to Discord. At this point, we can then use the discord.py repository to implement a DiscordBot that can create channels, send messages, and receive replies. We can then use this bot to send messages to the CozeBot and get replies from it, in order to use chatgpt4 for free!
Functionality
- [x] Create a new channel in the server
- [x] Send a message to
CozeBoton the specified channel. - [x] Support AI drawing
- [ ] Interfacing with CozeDiscordFrontend
- [ ] Other (under development)
Api Document
-
Create a new channel
/api/channel/create
Request Methods:
POSTParameters:
- Content-Type: application/json
- Body:
{ "channel_name": "test_channel" }
Example:
~/CozeDiscord$ curl -X POST -H "Content-Type: application/json" -H "token: nanomoa" -d '{"channel_name": "test_channel"}' http://127.0.0.1:5000/api/channel/create {"code":1,"data":{"channel_id":1200000000000000053,"channel_name":"test_channel"},"message":"Create channel success."} -
Delete channel
/api/channel/delete
Request Methods:
POSTParameters:
- Content-Type: application/json
- Body:
{ "channel_id": 1200000000000023 }
Example:
~/CozeDiscord$ curl -X POST -H "Content-Type: application/json" -H "token: nanomoa" -d '{"channel_id": 1200000000000023}' http://127.0.0.1:5000/api/channel/delete {"code":1,"message":"Delete channel success."} -
Send a message and get a reply
/api/chat/send
Request Methods:
POSTParameters:
-
Content-Type: application/json
-
Body:
{ "channel_id": 1200000000000000086 "message": "test" }Example:
~/CozeDiscord$ curl -X POST -H "Content-Type: application/json" -H "token: nanomoa" -d '{"channel_id":1200000000000000086,"message":"test"}' http://127.0.0.1:5000/api/chat/send {"code":1,"data":{"message":"Hello! How can I assist you today? If you need to test something or have any questions, feel free to ask."},"message":"Send message success."} -
Usage
- Go to the Discord Developer Platform
- Create a new app and copy the token.
- Go to Coze
- Create a new bot and install the
DALLE 3plugin on it. - Publish the bot to Discord and add it to your server
- Create a new Discord app and give it administrator rights.
- Add it to your server
- then configure the project's
config.yamlfile - Install all the libraries and run the project
- After it finishes running you will see the command line output
Logged in as {your bot's name}.
People who starred this github repository!
Express gratitude (esp. in public)
Coze: Next-generation AI chatbot building platform.
Discord: A community for gaming, learning, music and more.
discord.py: An API wrapper for Discord written in Python.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
