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.

Random Nick

Old posts that have not been replied to for several years.
Locked
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Random Nick

Post by Nexus6 »

# I wanna bot change nick radomly ever X mins but it should part #chan #for a 60 secs when changing nick so users of #chan can't notice it.


set changeN "30"
set chaN "#chan"
set nickz {
example1
example2
}

if {![info exists tnchange_r ]} {
timer $changeN tnchange
set tnchange_r 1
}


proc tnchange {} {
global nickz
set nick [lindex $nickz [rand [llength $nickz]]]
}
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

To get the bot to part channels, add this to your timer:

putmode "join 0"

Good luck.
Locked