From 75309dde805874188996a343e4b8c55d95305bd8 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 25 Dec 2014 11:22:12 -0800 Subject: [PATCH] ignore unicode extended chars for now --- rtmbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtmbot.py b/rtmbot.py index 7cf5956..24f97a2 100755 --- a/rtmbot.py +++ b/rtmbot.py @@ -51,7 +51,8 @@ class RtmBot(object): if limiter == True: time.sleep(1) limiter = False - channel.send_message("{}".format(output[1])) + message = output[1].encode('ascii','ignore') + channel.send_message("{}".format(message)) limiter = True def crons(self): for plugin in self.bot_plugins: