From c4dff0c4a67eceb5882776a4c83e6d8034982e5b Mon Sep 17 00:00:00 2001 From: Thrudgelmir Date: Sat, 24 Aug 2019 14:39:51 +0200 Subject: [PATCH] dikgedrukte kaarten --- Shitpost.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shitpost.py b/Shitpost.py index 3c1c13e..2cd95c9 100644 --- a/Shitpost.py +++ b/Shitpost.py @@ -574,10 +574,10 @@ class Shitpost(object): '''Speel Kaarten Tegen De Mensheid! Genereer een kaart of geef zelf opties. Bijvoorbeeld: !ktdm <"1"><"2"><"3"> (aanbevolen 1 of 2, max 3)''' random.shuffle(self.witte_lijst) # schudden voor gebruik - zwarte_kaart = random.choice(self.zwarte_lijst).replace("___", "{}") # kies en maak het juiste format + zwarte_kaart = random.choice(self.zwarte_lijst).replace("___", "**{}**") # kies en maak het juiste format aantal_wit = zwarte_kaart.count("{}") # tel hoeveel witte kaarten er nodig zijn if aantal_wit == 0: # Soms staat er geen ___ in de kaart - zwarte_kaart = zwarte_kaart + " {}" + zwarte_kaart = zwarte_kaart + " **{}**" aantal_wit = 1 arg_count = len(args) if arg_count > 3: @@ -588,7 +588,7 @@ class Shitpost(object): if arg_count != 0: # Indien extra args gegeven while arg_count != aantal_wit: # Match het aantal args aan het aantal dat nodig is - zwarte_kaart = random.choice(self.zwarte_lijst).replace("___", "{}") + zwarte_kaart = random.choice(self.zwarte_lijst).replace("___", "**{}**") aantal_wit = zwarte_kaart.count("{}") wit={} # maak dynamisch dict aan met de witte kaarten die ingevuld worden