Typing new command in Discord with Emotes

Asked Aug 1, 2020·1 reply·Last activity 6 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.

Hey everyone!

In a streamer's Discord, they use the exact same emotes and naming conventions as they do in the streamer's Twitch chat. Whenever we (the mods!) try to make a command in Discord via the Nightbot bot that includes one of the channel's emotes, it outputs weirdly in Twitch chat.

We type out the name of the emote without the colons in Discord, but it will still display as an emote in Discord.

Anybody have a similar issue and know a solution to it? Some might refer me to an older post (link expired) on this same site, but we have the issue the other way around :)

If anyone knows what I am on about and knows a solution, I would love to hear, thank you!

1 reply

Hiya, I'm not sure if I exactly understand the problem.. but Twitch and Discord have different formatting for their emotes, so to have them work on both platforms at the same time you might need some Javascript/$(eval) to check which platform the user is at, and send the correct emote code.

A copy paste example from a similar issue:

js
$(eval p=`$(provider)`;p==`discord`?`(veetFRICKS discord emote id) are recruiting!`:(p==`twitch`?`veetFRICKS are recruiting!`:` `))