1
0
forked from lug/matterbridge

Strip extra info from emotes (discord) (#1052)

This commit is contained in:
Qais Patankar
2020-03-22 13:16:31 +00:00
committed by GitHub
parent 76e5fe5a87
commit af0acf0dae
2 changed files with 8 additions and 0 deletions

View File

@@ -119,6 +119,9 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
rmsg.Event = config.EventUserAction
}
// Replace emotes
rmsg.Text = replaceEmotes(rmsg.Text)
b.Log.Debugf("<= Sending message from %s on %s to gateway", m.Author.Username, b.Account)
b.Log.Debugf("<= Message is %#v", rmsg)
b.Remote <- rmsg