From 075ca9ca471a7bfaf86fd0a762ed38b8cbf4edfb Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 17 Nov 2019 23:01:03 +0100 Subject: Switch to new emoji library kyokomi/emoji (#948) --- gateway/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gateway') diff --git a/gateway/gateway.go b/gateway/gateway.go index af8aecd8..b74a3aaa 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -13,7 +13,7 @@ import ( "github.com/d5/tengo/script" "github.com/d5/tengo/stdlib" lru "github.com/hashicorp/golang-lru" - "github.com/peterhellberg/emojilib" + "github.com/matterbridge/emoji" "github.com/sirupsen/logrus" ) @@ -372,7 +372,7 @@ func (gw *Gateway) modifyMessage(msg *config.Message) { } // replace :emoji: to unicode - msg.Text = emojilib.Replace(msg.Text) + msg.Text = emoji.Sprint(msg.Text) br := gw.Bridges[msg.Account] // loop to replace messages -- cgit v1.2.3