From: Thorsten Date: Tue, 21 Jan 2020 18:09:09 +0000 (+0100) Subject: fix localization X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=813b8c03551d48d8d3b56a9e76256c4829df485b;p=urlbot-v3.git fix localization --- diff --git a/distbot/plugins/basic.py b/distbot/plugins/basic.py index a4df12a..d73aff9 100644 --- a/distbot/plugins/basic.py +++ b/distbot/plugins/basic.py @@ -193,7 +193,8 @@ class Coin(Worker): def parse_body(self, msg): sender = get_nick_from_message(msg) - if "coin" in msg: + words = get_words(msg) + if "coin" in words: localized_responses = ["head", "tails"] else: localized_responses = ["kopf", "zahl"]