Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Soul on June 07, 2003, 01:11 AM

Title: Channel Ban
Post by: Soul on June 07, 2003, 01:11 AM
I Was wondering if anyone knew how to do chanban - As in you type (Trigger)channelban <channel> and it bans the whole channel...If anyone could help, i would appreiciate it ;} Thanks !  ;D
Title: Re:Channel Ban
Post by: c0ol on June 07, 2003, 01:30 AM
u could have it /who the channel, then ban, but u have to becareful when detecting the [OPS] because at one point that was a legal name.  Another way would be to spawn a slave bot to go in that channel and then notify the other bot whos in the channel.
Title: Re:Channel Ban
Post by: Moonshine on June 07, 2003, 01:41 AM
Have your bot keep an internal list of every user in the current channel, then traverse the list banning each user.
Title: Re:Channel Ban
Post by: Tuberload on June 07, 2003, 03:36 PM
Your bot should keep track of users currently in the channel, join, and leave events in some fashion. That way you will know exactly who is in the channel. Then cycle through the list banning whomever you want.