chat 이벤트
chat
이벤트는 모든 유형의 메시지를 감지할 때 발생하는 이벤트입니다.
구문
iris.bot.Bot
의 on_event()
데코레이터를 이용해
이벤트에 대한 핸들러를 추가할 수 있습니다.
from iris import ChatContext
@bot.on_event("chat")
def on_chat(chat: ChatContext):
...
인자
chat
ChatContext이벤트에 대한 컨텍스트인
ChatContext
객체입니다.