@Bot.on_event

이벤트 핸들러를 등록하기 위한 데코레이터입니다.

구문

@bot.on_event(name)
def handler(...):
  ...

매개변수

namestr

핸들러를 등록할 이벤트 이름