5.2 PART (Command)
From BotHouse MediaWiki
The PART command is used by bot owners, owners, masters and techs in conjunction with the JOIN command to control on which channels the bot appears. While eggdrop does provide these commands by default in the form of +chan for joining channels and -chan for parting channels; these commands must be used within a DCC chat context.
Contents |
[edit] The Basics
This command assumes you have logged in and have access to the PART command.
/MSG <BOTNICK> PART <CHANNEL> [REASON]
Notice that the BOTNICK and CHANNEL are surrounded by less-than and greater-than signs. This is because those are REQUIRED pieces of information and must be supplied. The REASON is surrounded by brackets because this is an optional piece of information and does not have to be supplied.
Issuing the above command to the bot will make it part the desired CHANNEL.
[edit] Advanced Usage
[edit] Mass Specified Parting
StormBot also provides facilities to allow multiple channels to be parted with one command all utilizing the same reason. This allows maintainers of StormBot bots to quickly make their eggdrop part many channels simultaneously.
/MSG <BOTNICK> PART -MASS <CHANNEL_1> <CHANNEL_2> <CHANNEL_3> [REASON]
[edit] Mass Dynamic Channel Parting
StormBot provides the ability for a flat departure of all dynamic channels which are those channel not explicitly specified in the eggdrop configuration file. These are channels that are added during the bot's runtime by bot maintainers.
/MSG <BOTNICK> PART -ALLDYNAMICCHANS -ALLOK [REASON]
NOTE: This particular usage of the PART command requires a user level of at least 800 for security reasons. This cannot be changed as it is hard-coded into the script.

