p5-hubot
p5-hubot copied to clipboard
IRC Adapter should provide idle/awake event
Hubot::Adapter::Irc
는 AnyEvent::IRC::Client
를 사용중인데 away_status_change
event 를 등록할 수 있네요.
away_status_change => $bool
Emitted whenever a presence/away status change for you was detected.
$bool is true if you are now away, or false/undef if you are not
away anymore.
You can change your away status by emitting the "AWAY" IRC command:
$cl->send_srv (AWAY => "I'm not here right now");
Or reset it:
$cl->send_srv ('AWAY');
이건 robot 자신의 status 를 변경할때 쓰이는것 같네여.
irc 에서 자신의 상태를 idle
로 설정 할 수 있나요?