p5-hubot icon indicating copy to clipboard operation
p5-hubot copied to clipboard

IRC Adapter should provide idle/awake event

Open am0c opened this issue 12 years ago • 2 comments

am0c avatar Oct 26 '12 08:10 am0c

Hubot::Adapter::IrcAnyEvent::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');

aanoaa avatar Oct 29 '12 02:10 aanoaa

이건 robot 자신의 status 를 변경할때 쓰이는것 같네여. irc 에서 자신의 상태를 idle 로 설정 할 수 있나요?

aanoaa avatar Oct 29 '12 02:10 aanoaa