Giter Site home page Giter Site logo

oddfar / coze-discord Goto Github PK

View Code? Open in Web Editor NEW
177.0 177.0 38.0 110 KB

Using two Discord robot proxies for Coze service, free access to the API features of the GPT-4 advanced model.使用两个Discord机器人代理Coze服务,免费使用GPT-4高级模型的API功能(项目已失效,仅供学习)

License: MIT License

Java 98.67% Dockerfile 1.33%

coze-discord's Introduction

Hi there 👋

  • 🔭 I'm now in my fourth (4rd year) year of college.
  • 🌱 I’m currently learning.
  • 😄 Pronouns: 致远|oddfar
  • ⚡ Fun fact: I found that I do not know anything. 😣

private github information

private language

coze-discord's People

Contributors

oddfar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coze-discord's Issues

Cannot invoke \"net.dv8tion.jda.api.entities.channel.concrete.TextChannel.canTalk()\" because \"textChannel\" is null

直接使用docker 部署后,具体参数也换成自己的,会报这个错,
docker run --net host -d --restart=always
--name coze-discord
--privileged
-e TZ=Asia/Shanghai
-e SERVER_PORT=8080
-e DISCORD_BOT_TOKEN="xxxxxxxxx"
-e DISCORD_GUILD_ID="1xxxxxxxxxx3"
-e DISCORD_COZE_BOT_ID="1xxxxxxxxx2"
-e DISCORD_CHANNEL_ID="1xxxxxxxxxxxx0"
ghcr.io/oddfar/coze-discord:master

注:服务器部署在国外

[Feature] 对话支持文生图

功能请求

对话支持文生图

解决方案和应用场景

image

收到消息的回调中:MessageListener,可根据以下代码获取图片的url

        List<MessageEmbed> embeds = message.getEmbeds();
        for (MessageEmbed messageEmbed : embeds) {
            MessageEmbed.ImageInfo image = messageEmbed.getImage();
            log.info("嵌套消息图片Url {}", image.getUrl());
        }

当它有嵌套消息时,一般为图片作答

[bug] 代理无法使用,网上查了一下做了一下修改

Proxy proxy = new Proxy(Proxy.Type.SOCKS,
                    InetSocketAddress.createUnresolved(hostPort[0], Integer.parseInt(hostPort[1])));
OkHttpClient.Builder okHttpBuilder = new OkHttpClient.Builder().proxy(proxy);
WebSocketFactory factory = new WebSocketFactory();
// 本地http代理是socks+1
factory.getProxySettings().setHost(hostPort[0]).setPort(Integer.parseInt(hostPort[1])+1);
builder.setHttpClientBuilder(okHttpBuilder).setWebsocketFactory(factory);

[Feature] 等一个Python版本

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能请求

后期会有其他语言吗?比如python版本的

解决方案和应用场景

融入现有的大语言模型测试框架

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.