From: Thorsten Date: Sat, 24 Jun 2023 09:22:53 +0000 (+0200) Subject: minor language fixes X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=3fd7c457913da07a8153621053c531307ad48377;p=urlbot-v3.git minor language fixes --- 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]