Comments (5)
我看这位Ashy8682
的说法是添加一个中间件用于将discord
中的图片消息转为CICode
发送到mc
公屏中?
请问这是否存在难点?
from chatimage.
Issue 里后面有提到说 Discord to Minecraft 可以借 MCDC 自定义配置解决,因此这块 ChatImage 不需要进行任何改动,而是 Minecraft to Discord 需要想办法。
可以从这个 comment 开始看。
from chatimage.
Minecraft to Discord过程中
需要拆分CICode,提取出url
如果是file:///那就需要调用上传了吧
若服务器安装了ChatImage,则会有图片缓存在内存中
关于拆分CICode可以参考这段code
至于本地图片的话,有何好的想法?
from chatimage.
我是觉得一个 mod 专门为了符合另一个 mod 的格式规范而进行修改可能并不是最实际的方法。要知道这样做可能会使 mod 代码变得越来越复杂,毕竟一旦接受一个请求,就会有无数类似请求。因此我主要希望探讨是否有一种更 general 的解决方案,这样后来者也不需要对此 mod 进行额外适配,这样大家也都受益嘛。<(^-^)>
from chatimage.
添加我QQ:1585447424 细聊吧
from chatimage.
Related Issues (20)
- 1.20.2Fabric HOT 8
- [Bug] Fabric 1.20.2 网络图片无法加载
- [Bug] [Fabric 1.20.1] ChatImage not working on server HOT 2
- [Bug] 1.20 Fabric 多人模式无法转换为图片 HOT 6
- [Bug] 使用TextComponent或Rcon发送消息会出现literal([图片]) HOT 8
- [Bug] 1.18.2 forge 服务器不安装该模组无法进入 HOT 1
- [Feat] 支持/me命令
- [Bug] 与allmusic mod的okhttp3库冲突 HOT 3
- [Feat] 支持原始 json 文本 HOT 3
- [Feat] 支持Forge,Fabric 1.20.3+
- [Bug] 1.16.5 Forge图片发送存在缺陷 HOT 5
- [Bug] 在1.20.1客户端使用Mod时接收比较多的图片消息会导致材质出错 HOT 8
- [新功能] 添加一个开关以支持直接将图片显示到聊天框,而非鼠标移动上去后悬浮显示
- [Bug]
- [Bug] 花屏
- [Bug] 在如果服务端装有NoChatReports,则客户端发送的CICode等指令无法正常渲染为图片。 HOT 4
- [Bug] 发送超过32767字节的图片会被踢出 HOT 5
- [Bug] 在发送本地图片时(发送者)会被踢出游戏 HOT 3
- [Bug] 超过33kb图片踢出服务器 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatimage.