Autoreact to kardashian/jenner
All checks were successful
Build Heidi Docker image / build-docker (push) Successful in 7s

This commit is contained in:
2023-11-25 20:12:36 +01:00
parent 48e47f081a
commit 7250d7bb7d

12
bot.py
View File

@ -57,8 +57,9 @@ class HeidiClient(discord.Client):
# if the predicate is true the action is performed
self.auto_triggers = {
# lambda m: m.author.nick.lower() in self.models.get_in_names(): self.autoreact_to_girls,
lambda m: "jeremy"
in m.author.nick.lower(): self._autoreact_to_jeremy
lambda m: "jeremy" in m.author.nick.lower(): self._autoreact_to_jeremy,
lambda m: "kardashian" in m.author.nick.lower()
or "jenner" in m.author.nick.lower(): self._autoreact_to_kardashian,
}
# Textgen
@ -143,6 +144,13 @@ class HeidiClient(discord.Client):
"""
await message.add_reaction("🧀")
@staticmethod
async def _autoreact_to_kardashian(message):
"""
💄 Kardashian
"""
await message.add_reaction("💄")
# ------------------------------------------------------------------------------------------------