ON 1600:text:*log*:#: {
IF ($2- == $null) {
IF ($1 == %c $+ findlog) { /set %log.viewer [ $findfile(C:\filepath,*.txt, $+ [ $2 ] ) ] | msg $nick %log.viewer }
IF ($1 == %c $+ log) { /play $nick " $+ %log.viewer $+ " 4000 ] | halt }
}
}
else { halt }
Make sure that you add it to YBbot... maybe in a new remote script. Also the ON 1600 insures that ONLY the bot owner can use this function, so you MUST log in as the owner! Make sure that you change the filepath and name to the correct log. The 4000 is time in miliseconds (4 seconds). You can adjust that as you see fit... but be aware of flood protection... some networks even protect PM's from flood!
To find the log file you want, type !findlog 0. This will show you how many log files are in the folder.
The last file in the folder should be the most recent one, so if you type !findlog 0 and the result you get is 42, the next command you will use is !findlog 42
That will tell you the name of the file. If it is the one you want, type !log and the file will display in a PM.
Make sure you change the filepath to the correct set of logs!
Example filepath:
Quote
(C:\Program Files\mIRC\YB452\logs,*.txt, $+ [ $2 ] )

Sign In
Register
Help

MultiQuote