This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

little help

Old posts that have not been replied to for several years.
Locked
V
Vizor

little help

Post by Vizor »

i want my bot to get number of bots in the botnet and save to file
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Re: little help

Post by strikelight »

Vizor wrote:i want my bot to get number of bots in the botnet and save to file

Code: Select all

set myfile "/home/me/eggdrop/unf.txt"
set numbots [llength [bots]]
set outfile [open $myfile w]
puts $outfile $numbots
close $outfile
Of course this is useless code unless it is event-triggered. (ie. bound to a dcc command or a timer or something.)
Locked