aanoaa / p5-hubot

hubot perl port
15 stars 3 forks source link

shorten #14

Open aanoaa opened 11 years ago

aanoaa commented 11 years ago
<a3r0>  http://cafe.naver.com/qoavkdldaaj.cafe?iframe_url=/ArticleSearchList.nhn%3Fsearch.clubid=19173338%26search.searchBy=0%26search.sortBy=sim%26search.query=perl
<hongbot> [Unknown encoding 'ksc5601' at /home/p5/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/Hubot/Scripts/shorten.pm line 70.
aanoaa commented 11 years ago
<yuni> http://www.meetup.com/SVPerl/events/73049292/  [15:22]
<hongbot> [Error!  - Meetup] - http://www.meetup.com/SVPerl/events/73049292/
<yuni> hshong: 왜 저러죠?
aanoaa commented 11 years ago
<hshong> hongbot: help url  [11:08]
<hongbot> # <tweeturl> - Display tweet content
<hongbot> # <url> - Shorten the URL using bit.ly
<hshong>
         http://www.php-oa.com/2012/10/19/%E5%8C%97%E4%BA%AC-perl-%E5%B0%8F%E8%81%9A%E6%B4%BB%E5%8A%A8%E7%85%A7%E7%89%87.html
<hshong> 마법의 link 인가..
<hshong> https://www.google.com/
<hongbot> [302 Moved] - https://www.google.com/
aanoaa commented 11 years ago
<a3r0> http://news.chosun.com/site/data/html_dir/2012/11/08/2012110802955.html
                                                                        [12:59]
<hongbot> [���� &quot;�ֹ� �Ǽ��� ����, �սǾ� ������ 134�� �����϶�&quot; �ǰ� - 1��
          ���ͳݴ��� ��������] - http://bit.ly/W2yQ6H
<a3r0> 헙 홍봇이 인코딩 제대로 못읽네
aanoaa commented 11 years ago
<hshong> http://www.gluster.org/2012/11/trying-out-moosefs/  [20:12]
<hshong> 이거 보게?  [20:13]
<hshong> http://www.google.com
<hongbot> [302 Moved] - http://www.google.com
aanoaa commented 11 years ago
http://www.meetup.com/SVPerl/events/73049292/ [15:22] [Error! - Meetup] - http://www.meetup.com/SVPerl/events/73049292/ hshong: 왜 저러죠?

왜 그런지는 모르겠고, 지금 해보니까 잘됨

hubot> http://www.meetup.com/SVPerl/events/73049292/
hubot> [Mojolicious (rescheduled) -  Silicon Valley Perl (San Jose, CA) - Meetup] - http://www.meetup.com/SVPerl/events/73049292/
aanoaa commented 11 years ago

마법의 링크도 잘됨

hubot> http://www.php-oa.com/2012/10/19/%E5%8C%97%E4%BA%AC-perl-%E5%B0%8F%E8%81%9A%E6%B4%BB%E5%8A%A8%E7%85%A7%E7%89%87.html
hubot> [扶凯] - http://bit.ly/Uj2qnt
aanoaa commented 11 years ago

http://www.gluster.org/2012/11/trying-out-moosefs/ 이것도 잘됨

aanoaa commented 11 years ago

ksc5601 문제를 풀어야 하는데 해당 링크가 사라져서 테스트를 할 수 없는 상황임 나중에 발견되면 패치 하겠음

aanoaa commented 11 years ago
<a3r0> http://cafe.naver.com/cloudfrontier/3374  [11:45]
<hongbot> [Unknown encoding 'ksc5601' at
          /home/p5/perl5/perlbrew/perls/perl-5.16.1-thread/lib/site_perl/5.16.1/Hubot/Scripts/shorten.pm
          line 79.
aanoaa commented 11 years ago

50db8fcd39320485e1672e05d27b42144deca94d

aanoaa commented 11 years ago
<a3r0> http://rjbs.manxome.org/rubric/entry/1981  [11:12]
<hongbot> [Unknown encoding '"utf-8"' at
          /home/p5/perl5/perlbrew/perls/perl-5.16.1-thread/lib/site_perl/5.16.1/Hubot/Scripts/shorten.pm
          line 80.
newbcode commented 11 years ago

hubot (shell adapter)상에서 url을 넣으면 title이 나오지 않습니다. hubot에서 테스트를 진행 할 수 없어요. 우선 제가 테스트 하기론 첨에 캡쳐되는 부분에서 Data::Printer로 찍으면 아무것도 나오지 않습니다 .

aanoaa commented 11 years ago

adapter 의 문제같습니다. 같은 설정하에 adapter 만 바꿔서 테스트해봤습니다.

### Shell Adpater
$ perl bin/hubot 
hubot> http://moose.iinteractive.com/support.html
# 조용...
### Irc Adapter
<newbcode_home> http://moose.iinteractive.com/support.html
<hongbot> [Moose - A postmodern object system for Perl] - http://moose.iinteractive.com/support.html
aanoaa commented 11 years ago

hubot-scripts.jsonshorten 이 없던 문제 였습니다. 사용자불량 테스트.