From 3fd7c457913da07a8153621053c531307ad48377 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 24 Jun 2023 11:22:53 +0200 Subject: [PATCH] minor language fixes --- distbot/plugins/didyouknow.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/distbot/plugins/didyouknow.py b/distbot/plugins/didyouknow.py index 39cf75a..6ee9865 100644 --- a/distbot/plugins/didyouknow.py +++ b/distbot/plugins/didyouknow.py @@ -26,11 +26,11 @@ class DidYouKnow(Worker): self.dynamic_db = "didyouknow.json" answers = [ - "Nö. Aber: ", - "Olle Kamelle - ", - "Ja klar. ", - "Ja, hab ich gestern im Internet gefunden. ", - "Nein, glaub' ich auch nicht. " + "Nö. Aber:", + "Olle Kamelle -", + "Ja klar.", + "Ja, hab ich gestern im Internet gefunden.", + "Nein, glaub' ich auch nicht." ] def parse_body(self, msg): @@ -45,7 +45,7 @@ class DidYouKnow(Worker): json.dump(db, fd, indent=2) answer = random.choice(self.answers) - return Action(msg="{} {}".format(answer, fact)) + return Action(msg="{} {}".format(answer, fact.capitalize() if answer.endswith(".") else fact)) ALL = [DidYouKnow] -- 2.39.2