Mssjim / discord-server-mirror

Mirror discord server messages to another server
MIT License
19 stars 2 forks source link

Use emotelink instead 🙏 or :name: #3

Open Shmalle opened 2 years ago

Shmalle commented 2 years ago

It would be a nice enhancement if we had the link of the emoji sent instead of 🙏 or the :name:.

Mssjim commented 2 years ago

If you use convertEmojis as true and the server don't have emojis, all of them will be converted to 🙏 xD

Now you can change the convertEmojis on settings.json to 2

"convertEmojis": 2,

In this case, when someone send a server emoji on readChannel, you'll get the link on writeChannel.

image image

This was the best way I've thought of so far to support messages with more than one emoji. However, if there are too many emojis or the original message are big, you may exceed the discord message limit and fail. Im thinking about use an embed, attachment, or other message in the future. Anyway, I'm open to suggestions.

Shmalle commented 2 years ago

Maybe use a .txt file as emoji-index. Its usually (at least on Desktop) displayed "instantly" so you'd directly see the links. The emotes then are attached too as files, not as links. Would result in a quite large message but it would be "clear enough". Example: image would result in this at writeChannel: image I love this duck emote

Shmalle commented 2 years ago

I just realised that my "solution" wouldnt actually help with the 10-images-limit.