From d82a4317890941989323dac09cc21ae179a26c51 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 29 Apr 2021 23:19:45 +0200 Subject: [PATCH] update for jeremy --- bot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot.py b/bot.py index 45404d6..0c04f05 100644 --- a/bot.py +++ b/bot.py @@ -37,6 +37,9 @@ class HeidiClient(discord.Client): self.triggers[ lambda m: m.author.nick.lower() in self.girls.get_in_names() ] = self.autoreact_to_girls + self.triggers[ + lambda m: "jeremy" in m.author.nick.lower() + ] = self.autoreact_to_jeremy self.matchers = {} # react to messages self.matchers["Hilfe$"] = self.show_help @@ -270,5 +273,12 @@ class HeidiClient(discord.Client): await message.add_reaction("❤") + async def autoreact_to_jeremy(self, message): + """ + Ich ❤-e Nachrichten von Jeremy + """ + await message.add_reaction("🧀") + + client = HeidiClient() client.run(TOKEN)