From 0ce5571c946b620c71bb20510b48deee29afe57a Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 5 Jun 2019 20:28:10 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot_AI/AI_aiml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index 2631150..c164ae4 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -22,8 +22,7 @@ def bot_command_rule(bot, trigger): return message = trigger.args[1] - if isinstance(message, 'unicode'): - return + message = ''.join([x for x in message if ord(x) < 128]) # ignore text coming from a valid prefix if str(message).startswith(tuple(bot.config.core.prefix_list)):