YB Forums: Remote Access Log Viewer - YB Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Remote Access Log Viewer View logs from work, or where ever...

#1 User is offline   Anthony Icon

  • Icon
  • Group: Support Helper
  • Posts: 20
  • Joined: 08-January 10
  • Gender:Male
  • Interests:I love scripting, and gaming... but don't have much time between work and a new baby and a wife and a 80lb dog... I think I'll just stop sleeping... *sigh*

Posted 18 January 2010 - 10:26 PM

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 ] )

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users