Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Colloquy plugin

Open mrjcleaver opened this issue 10 years ago • 1 comments

It'd be nice to be able to slog Colloquy chats.

mrjcleaver avatar Mar 01 '15 00:03 mrjcleaver

Some time ago I built this:

#! /bin/sh 
cd "$HOME/Documents/Colloquy Transcripts"

CHANNEL=$2
if [ X$CHANNEL = X ]; then
    CHANNEL='*'
fi

IRCUSERNAME=MartinClea
IRCBEFOREME=2
IRCAFTERME=2
DATE=$1
if [ ! -n "$DATE" ]
then 
    DATE=`date "+%d-%m-%y"`
fi

for i in $CHANNEL*$DATE*; 
do 
xsltproc  $HOME/Library/Application\ Support/Colloquy/PlugIns/plaintext.xsl "$i" | sed -e "/^/s//$i /" | grep -A$IRCBEFOREME -B$IRCAFTERME $IRCUSERNAME; 
done | grep -v " » "

Seems it no longer works - I think the folder structure changed - but it's a start.

mrjcleaver avatar Mar 01 '15 19:03 mrjcleaver