update for jeremy
This commit is contained in:
10
bot.py
10
bot.py
@ -37,6 +37,9 @@ class HeidiClient(discord.Client):
|
|||||||
self.triggers[
|
self.triggers[
|
||||||
lambda m: m.author.nick.lower() in self.girls.get_in_names()
|
lambda m: m.author.nick.lower() in self.girls.get_in_names()
|
||||||
] = self.autoreact_to_girls
|
] = 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 = {} # react to messages
|
||||||
self.matchers["Hilfe$"] = self.show_help
|
self.matchers["Hilfe$"] = self.show_help
|
||||||
@ -270,5 +273,12 @@ class HeidiClient(discord.Client):
|
|||||||
await message.add_reaction("❤")
|
await message.add_reaction("❤")
|
||||||
|
|
||||||
|
|
||||||
|
async def autoreact_to_jeremy(self, message):
|
||||||
|
"""
|
||||||
|
Ich ❤-e Nachrichten von Jeremy
|
||||||
|
"""
|
||||||
|
await message.add_reaction("🧀")
|
||||||
|
|
||||||
|
|
||||||
client = HeidiClient()
|
client = HeidiClient()
|
||||||
client.run(TOKEN)
|
client.run(TOKEN)
|
||||||
|
Reference in New Issue
Block a user