A very simple IRC bot written in C. Its primary purpose is logging what people say on channels.
There are multiple ways to compile SirLogsalot.
- Running
make
ormake compile
will compile the code and leave an executable called sirlogsalot. - Running
make run
will compile the code and run the executable in one step. - Running
make test
will compile the code and perform memory tests using valgrind. - Running
make clean
will remove the executable and only leave the code files.
The program logs the messages, joins and leaves to filenames in the format nick.log.txt
or #channel.log.txt
. It adds the current date and time to every line. It allows configuration with the config.txt file.
The program can be configured by editing the config.txt file. The file is in the key = value
format. The settings are:
- server: Used to set the server ip to connect to. Example: server = 195.154.200.232
- port: Used to set the port of the server. The default irc port is 6667. Example: port = 6667
- nick: Used to set the nick of the bot. Example: nick = SirLogsalot
- channels: Used to set the channel list for the bot, comma seperated. Example: channels = #WatchPeopleCode,#archlinux