| View previous topic :: View next topic |
| Author |
Message |
Zorb Voice
Joined: 17 Oct 2006 Posts: 22
|
Posted: Sun Jul 22, 2007 8:03 pm Post subject: Random Nicks |
|
|
Wondering how I would be able to select a random choice from about 5 nicks in the channel.
Bot
Bot2
Bot3
Bot4
Bot5
I'd like to be able to randomly choose one of them (not the bot that is running the script) and notice the bot to do something. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jul 22, 2007 9:12 pm Post subject: |
|
|
| Code: | set botslist {bot1 bot2 bot3 bot4 bot5}
set randombot [lindex $botslist [rand [llength $botslist]]] |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|