Display emotes on Twitch and Discord with same command

Asked Dec 30, 2020·3 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

3 replies

Displaying emotes works differently on Discord vs Twitch.

Say I have an emote on Twitch & my Discord server called foo. On Twitch I just type foo, but on Discord its actual name looks like :foo: (I can get its name by typing \:foo: in Discord chat). This command will distinguish between Twitch & Discord chat then output foo accordingly.

Have a foo: $(eval `$(provider)`==`twitch`?`foo`:`:foo:`)

Wow, thank you! That works. You are a saviour. How would I set this up for multiple emotes in a row?
For example

foo foo foo foo foo foo foo foo

Many thanks!

Copypaste

Have a foo: $(eval `$(provider)`==`twitch`?`foo foo`:`:foo: :foo:`)