From 813b8c03551d48d8d3b56a9e76256c4829df485b Mon Sep 17 00:00:00 2001 From: Thorsten Date: Tue, 21 Jan 2020 19:09:09 +0100 Subject: [PATCH] fix localization --- distbot/plugins/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"] -- 2.39.2