Simple C++ IRC bot implementation (with optional ssl connections)
Simple C++ IRC bot implementation
For now, this project depends on openssl and optionally
pugixml as well as sqlite3,
if you want to build test.cpp
.
# without ssl
$ make
# with ssl
$ make USE_SSL=t
# to include your own config in 'config.h'
$ make IRC_CONFIG=t
# run with pipe (will send the bot's output to 'bot.out')
$ make run_pipe
# run with system log (sends output to '/var/log/syslog',
# or anywhere else you might have configured in rsyslog)
$ make run_syslog
# kill (or type '.quit' on the irc channel, granted you need
# to have your host configured in 'config.h' , to prevent this
# command from being abused by the average user)
$ make kill
The test bot that comes with the source, test.cpp
, has the
following commands:
.quit -- kill the bot :-(
.noticeme -- the bot will notice you
.esmaga -- the bot will curse at you in portuguese :-)
.np <user> -- the bot will tell you what you're listening to, using last.fm
tcp.cpp
is a standalone tcp client you can use for pretty much
anything you want; it even comes with nifty ssl support!
This shit is public domain, do whatever the fuck you want with it. Also, don't expect quality software from a novice. :O)