From
tcl-commands.doc
The information you need to do a 'whom':
Code: Select all
whom <chan>
Returns: list of people on the botnet who are on that channel. 0 is
the default party line. Each item in the list is a sublist with six
elements: nickname, bot, hostname, access flag ('-', '@', '+', or
'*'), minutes idle, and away message (blank if the user is not away).
If you specify * for channel, every user on the botnet is returned
with an extra argument indicating the channel the user is on.
The information you need to find linked and unlinked bots:
Code: Select all
botlist
Returns: a list of bots currently on the botnet. Each item in the list
is a sublist with four elements: bot, uplink, version, sharing status:
bot: the bot's botnetnick
uplink: the bot the bot is connected to
version: its current numeric version
sharing: a "+" if the bot is a sharebot; "-" otherwise
The information you need to link a bot:
Code: Select all
link [via-bot] <bot>
Description: attempts to link to another bot directly. If you specify
a via-bot, it tells the via-bot to attempt the link.
Returns: 1 if the link will be attempted; 0 otherwise
The information you need to unlink a bot:
Code: Select all
unlink <bot>
Description: attempts to unlink a bot from the botnet
Returns: 1 on success; 0 otherwise
How to make the bot send out a dcc chat request:
*Click*
And finally, this is how you make a public trigger:
Code: Select all
bind pub -|- !trigger pub:procname
proc pub:procname {nick uhost hand chan text} {
# Your code goes here
}
Now that wasn't so hard, was it. Took like 30sec to look that up in
tcl-commands.doc, and another 10sec searching the forum.