Hello! I have to make a script which parts the bot from a specific channel when the bot has joined 20 channels, and makes it join the same channel again, when some other channel is parted.. But I have no idea where to start from Any ideas how to even check how many channels the bot is on, and write it into a variable for example?
To get the number of on how many channels the bot sits use [llength [channels]]. Then to get an random channel to be parted (make it +inactive and remove it when you want it back there) use something like: set randchan [lindex [channels] [rand [llength [channels]]]] and do your stuff with it.
Once the game is over, the king and the pawn go back in the same box.