Skip to content

An attempt at producing an IRC bot that logs a channel's content

License

Notifications You must be signed in to change notification settings

ObjectPascal-Community/pasirclogbot

Repository files navigation

Pascal IRC Log Bot

Build Status Supports Windows Supports Linux Supports macOS License Latest Release Downloads

Important

Since I was lazy enough to not bother with the boilerplate, I asked some AI bots to help me.
You can find the collected answers on the research folder.

An attempt at producing an IRC bot that logs a channel's content.

Preamble

In terms of internet protocols we can choose between Indy and Synapse as the libraries available. I decided that I was going to use Indy due to the fact that it already has an IRC client and I didn't want to do all the necessary string parsing for the IRC protocol.

Features

The initial idea is to have all the logging of the IRC channel dumped into a SQLite database. To query the database, the objective is twofold:

  1. Via commands on IRC
  2. Via a web site that the bot, itself, serves

Not sure if it's worth having the bot itself serve the website, but due to the fact that SQLite will be locked during the bot's operation, then this will have to be the path, for the time being.

Usage

$ paslogbot -h
Usage:
  paslogbot [PARAMS]

PARAMS:
    -h/--help         This help message.
    -c/--config=FILE  Use provided FILE as config. ( default: ~/.pasirclogbot )
    -d/--debug        Turn debug On. (default: Off)

Note

For Windows users you'll find SQLite .dll files under the windows-dll folder.

About the author

I'm usually on irc.libera.chat on the #objectpascal, #lazarus and #pascal channels. On IRC I use the nick name [Batch].