Init
This commit is contained in:
16
src/handlers/greetings.py
Normal file
16
src/handlers/greetings.py
Normal 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
|
||||
Reference in New Issue
Block a user