This commit is contained in:
2025-04-24 17:22:06 +02:00
commit f84df00e16
14 changed files with 1534 additions and 0 deletions

16
src/handlers/greetings.py Normal file
View File

@@ -0,0 +1,16 @@
from twitchAPI.chat import ChatMessage
TRIGGER_AND_RESPONSE: list[tuple[str, str]] = [
# ("ку", "Ку"),
("привет", "Привет")
]
async def on_greetings(msg: ChatMessage) -> bool:
for trigger, response in TRIGGER_AND_RESPONSE:
if trigger in msg.text.lower():
await msg.reply(response)
return True
return False