Giter Site home page Giter Site logo

Comments (6)

Xujiayao avatar Xujiayao commented on August 17, 2024

I found multiple Minecraft plugins/mods called ChatImage. Is https://github.com/kitUIN/ChatImage the one you are referring to?

from discord-mc-chat.

Ashy8682 avatar Ashy8682 commented on August 17, 2024

Yes that's it.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on August 17, 2024

I was able to send an image through Discord to Minecraft using MCDC and ChatImage, but I think it'd be really cool if MCDC was able to add the necessary text to the beginning and end of an image url sent in Discord automatically, such that ChatImage would recognize it.

It does not seem sensible for MCDC to fulfil another mod's specification ([[CICode,url=<url>,name=<name>,nsfw=<nsfw>]]).

This is indeed more of a feature request for automatically decorating recognized image URLs with default parameters, and I suggest it be submitted on the ChatImage side.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on August 17, 2024

I believe it would also be possible to show images sent in Minecraft using ChatImage in Discord, but currently it is not easily done because of the way ChatImage requires you to format your message.

In fact, the Discord client has the ability to parse image links directly. While this may result in losing functionality for the nsfw and name parameters, providing the mentioned option would help improve ChatImage's compatibility with most mods.

The compatibility of local file:/// images with Discord is questionable.

Additionally, the format of ChatImageCode causes image URLs and hyperlinks to be incorrectly recognized and truncated, which is another issue that has to be addressed.

You can reference this issue for them when you submit an issue on their side.

image

from discord-mc-chat.

Ashy8682 avatar Ashy8682 commented on August 17, 2024

Thanks for checking it out, and sorry I never added screenshots.

It does not seem sensible for MCDC to fulfil another mod's specification ([[CICode,url=<url>,name=<name>,nsfw=<nsfw>]]).

I was thinking more along the lines of adding a custom message option for specifically images/links/embeds sent through Discord, so you could add the CIC yourself through MCDC.

This is indeed more of a feature request for automatically decorating recognized image URLs with default parameters, and I suggest it be submitted on the ChatImage side.

The creator of ChatImage said they will not make it recognize image URLs as it would be too resource intensive. (I don't remember where they said that, and I really don't believe it but that's what they said).

In fact, the Discord client has the ability to parse image links directly. While this may result in losing functionality for the nsfw and name parameters, providing the mentioned option would help improve ChatImage's compatibility with most mods.

This is what I meant when I said it wasn't really that easy due to the formatting, never expected this to be implemented, but I figured it may or may not be possible to recognize a CIC message and turn it into something that Discord can parse (an image link, maybe marked as ||spoiler|| if nsfw).

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on August 17, 2024

I was thinking more along the lines of adding a custom message option for specifically images/links/embeds sent through Discord, so you could add the CIC yourself through MCDC.

Good idea! This should resolve Discord to Minecraft messages compatibility. ╰(*°▽°*)╯

As for Minecraft to Discord messages, I thought I would submit an issue on ChatImage side first to try and see if I can get better opinions from its developer.

from discord-mc-chat.

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.