IRC Python Bot: Best Way [closed]

孤人 提交于 2019-11-28 18:02:00

Use Twisted or Asynchat if you want to have a sane design. It is possible to just do it with sockets but why bother doing it from scratch?

If you want to have AI techniques involved, then I suggest you look at the AIML package for Python. It is the same technology that ALICE bots are done in.

If what you want is to create the AI portion, why bother writing all the code needed for the IRC connection by yourself?

I suggest using SupyBot, and simply write your AI-code as a plugin for it. There is reasonably understandable documentation and lots of example-code to find. Also, it comes with a decent amount of plugins for all sorts of uses that might complement your AI.

As I'm replying ~2 years later, I'm writing this just for Googlers :-P

Just try my 'Yet Another Useless IRC Bot' here https://github.com/julienpalard/yauib permitting you to code each feature of your bot using whatever language you want.

I made a (very crappy, and for a long time being refactored) IRC bot using irclib. The documentation is next-to-nothing, but it gets rid of making you have to do all that socket connecting and such, which is stuff I really don't want to deal with. To each his own, though.

Use an existing IRC library instead of implementing the protocol yourself.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!