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.
make compilewill compile the code and leave an executable called sirlogsalot.
make runwill compile the code and run the executable in one step.
make testwill compile the code and perform memory tests using valgrind.
make cleanwill remove the executable and only leave the code files.
How to Use
The program logs the messages, joins and leaves to filenames in the format
#channel.log.txt. It adds the current date and time to every line. It allows configuration with the config.txt file.
The Config 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 = 22.214.171.124
- 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