aanoaa / p5-hubot

hubot perl port
15 stars 3 forks source link

IRC Adapter should provide idle/awake event #18

Open am0c opened 11 years ago

aanoaa commented 11 years ago

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 commented 11 years ago

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