From 4b59c1bc7e397ce3cc5e4f6dc262092e53998f6f Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Fri, 9 Feb 2018 22:19:30 +0000 Subject: [PATCH] Put m.emotes in italics when sending to discord --- src/bot.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bot.ts b/src/bot.ts index 25912e0..2096893 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -167,6 +167,9 @@ export class DiscordBot { if (!isMarkdown) { body = "\\" + body; } + if (event.content.msgtype === "m.emote") { + body = `*${body}*`; + } return new Discord.RichEmbed({ author: { name: profile.displayname, -- GitLab