Home » Development » Geektool » Eggdrop IRC Bot Log

All that you will need to do is to edit the “lines” variable to how many lines you would like to be shown as well as the “logfile” variable to the way that you have your Eggdrop bot export. The today variable equates to a date like 20080710.

Sample Output:

[02:35] <chanstats> saving data (events) --> saved (63), discarded (0)
[02:42] <chanstats> saving data (schedule) --> saved (63), discarded (0)

Geektool Shell Entry:

bash /path/to/eggdrop/irc/bot/log.bash

Code:

#!/bin/bash
 
cd /path/to/eggdrop/logs/
 
lines=2
today=`date '+%Y%m%d'`
logfile=`ls | grep eggdrop.log.$today.txt`
 
tail -n $lines $logfile

Respond

You must be logged in to post a comment.