|
libircbot
library providing a framework for implementing an IRC bot
|
This is a library providing a framework for implementing an IRC bot in C.
So far, it is only suitable for pure "fun" bots. It doesn't offer managing channel or user modes, authenticating with services and any of that. It does offer reacting on typical bot commands, other PRIVMSGs, channel joins etc.
TLS is available by adding WITH_TLS=1 for building. This requires OpenSSL (or a compatible library). You can do for example:
make WITH_TLS=1 make WITH_TLS=1 install
Any value other than 0, no, off or false will enable TLS support.
For a minimal bot to do something, you need:
IrcServer object, created with IrcServer_create() and added to the bot with IrcBot_addServer()IrcServer_join()IrcBot_addHandler()IrcBot_run()The headers in $(prefix)/include/ircbot are documented, best start with ircbot.h. You can also generate html reference documentation using doxygen.
Pregenerated html docs can currently be found on https://home.palmen-it.de/~felix/docs/libircbot/
A real usage example can be found on https://github.com/Zirias/wumsbot