mmx900 / ManalithBot

ManalithBot is an open source IRC bot based on the PircBotX Framework.
http://manalith.org
GNU General Public License v3.0
3 stars 2 forks source link

urititle 이름 변경 => uriinfo #56

Closed darkcircle closed 12 years ago

darkcircle commented 12 years ago

Content-type 표시 기능 추가 (이전 코드는 주석처리 하였습니다)

mmx900 commented 12 years ago

구현하신 방식대로면 해당 페이지로의 연결을 두번 실행해야 합니다. URL 대신에 Jsoup.connect().execute().contentType() 을 사용하면 더 간단할 것 같습니다. 그리고 사용되지 않는 '기존 코드'는 주석 처리하지 마시고 삭제하는 편이 좋을 것 같습니다.

mmx900 commented 12 years ago

그리고 비록 비 텍스트에 국한되지만 컨텐츠 타입까지 표시하기 시작하면 봇이 너무 많이 말을 하게 될 듯 한데요... 필요하다면 적당한 옵션으로 켜고 끌 수 있어야 하지 않을까요?

darkcircle commented 12 years ago

플러긴의 서브기능에 대한 활성화 옵션을 플러그인 자체에서 지원해야 할텐데 "플러그인들의 공통 구조"를 깨지 않고 인터페이스를 지원하는 방안에 대해서는 아직 생각해보지 못했습니다.

mmx900 commented 12 years ago

간단한 setter를 하나 두고 config.xml 에서 설정하도록 하면 됩니다. 아래 Admin 플러그인에서 비밀번호 받는 방식을 확인해보세요~

https://github.com/mmx900/ManalithBot/blob/master/ManalithBot/src/main/java/org/manalith/ircbot/plugin/admin/AdminPlugin.java https://github.com/mmx900/ManalithBot/blob/master/ManalithBot/config.xml