17 lines
375 B
Python
17 lines
375 B
Python
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
|