|
|
6 tahun lalu | |
|---|---|---|
| .. | ||
| README.md | 6 tahun lalu | |
| hostclean.tcl | 6 tahun lalu | |
| parse.py | 6 tahun lalu | |
HostClean helps tidy up old entries in your bot for users hostmasks.
First, run log files (e.g. from your client) through parse.py - expects lines to have something matching "joins (user@hostname)" (or quits). Outputs user@host entries, one per line, for the TCL script. Run it many times and concatenate the output, then use sort and uniq to sanitise.
Something like this:
$( for f in "#channel.*.log"; do python parse.py "$f"; done ) | sort | uniq > hosts.txt
Then load the TCL script into your bot, and run .hostload <path to file you made above>, and then do .hostclean <handle> for each user.
The script outputs a bunch of .-host lines on the partyline, which you should double check, and then you can copy/paste them back into the partyline to execute them.