Code Monkey home page Code Monkey logo

Comments (5)

kitUIN avatar kitUIN commented on June 22, 2024

我看这位Ashy8682的说法是添加一个中间件用于将discord中的图片消息转为CICode发送到mc公屏中?

请问这是否存在难点?

from chatimage.

Xujiayao avatar Xujiayao commented on June 22, 2024

image

Issue 里后面有提到说 Discord to Minecraft 可以借 MCDC 自定义配置解决,因此这块 ChatImage 不需要进行任何改动,而是 Minecraft to Discord 需要想办法。

Xujiayao/Discord-MC-Chat#211 (comment)

可以从这个 comment 开始看。

from chatimage.

kitUIN avatar kitUIN commented on June 22, 2024

Minecraft to Discord过程中

需要拆分CICode,提取出url

如果是file:///那就需要调用上传了吧
若服务器安装了ChatImage,则会有图片缓存在内存中

关于拆分CICode可以参考这段code

至于本地图片的话,有何好的想法?

from chatimage.

Xujiayao avatar Xujiayao commented on June 22, 2024

我是觉得一个 mod 专门为了符合另一个 mod 的格式规范而进行修改可能并不是最实际的方法。要知道这样做可能会使 mod 代码变得越来越复杂,毕竟一旦接受一个请求,就会有无数类似请求。因此我主要希望探讨是否有一种更 general 的解决方案,这样后来者也不需要对此 mod 进行额外适配,这样大家也都受益嘛。<(^-^)>

from chatimage.

kitUIN avatar kitUIN commented on June 22, 2024

添加我QQ:1585447424 细聊吧

from chatimage.

Related Issues (20)

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.