From 334171648edd7f485a11df377dfe9f0857c6df39 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 18 Mar 2021 23:12:39 +0100 Subject: [PATCH] add color randomizer --- bot.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 893c69d..684bfea 100644 --- a/bot.py +++ b/bot.py @@ -44,6 +44,7 @@ class HeidiClient(discord.Client): self.matchers["gib Bild von .+$"] = self.show_model_picture self.matchers["Countdown$"] = self.countdown self.matchers["gib Link"] = self.show_link + self.matchers["welche Farbe .+\\?$"] = self.random_color ### Helpers ------------------------------------------------------------------------------------ @@ -146,13 +147,12 @@ class HeidiClient(discord.Client): ] await message.channel.send(random.choice(choices)) + # TODO: Accept multi-word inputs: "Heidi, wähle: Ipp ist dumm, ich bin dumm" async def choose(self, message): """ wähle: