I'd make several changes.
First, either install of have your host install Mytcl.
Next, create a table to hold the IRC info. Instead of writing to a file, write to the database directly.
Now, mod your bot to do database updates on connect, joins, parts, kicks, bans, quits and via a 10 minute timer. All of those except the latter makes your bot update the table in real-time and it need do it only for the channel where activity occurs, reducing your overall bot activity as well as your database activity.
All information is in real-time. The 10 minute timer takes care of undetectable events like server splits and the such.
|