This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

+INACTIVE help pls

Old posts that have not been replied to for several years.
Locked
I
Illidan
Voice
Posts: 27
Joined: Sat Oct 26, 2002 1:49 am

+INACTIVE help pls

Post by Illidan »

Hello,

I'm trying to code my bot to automatically +inactive for a certain amount of time. How do I go about doing it?

I know how to private msg the bot for command but how on earth do I dcc the bot and set +inactive in a specific channel?

The coding below is wrong I dont know how to go about coding for dcc, pls help.

putserv "dcc chat $botnick : .+inactive $chan"
timer 5 rejoin
proc rejoin {botnick $chan} {
putserv "dcc chat $botnick : .-inactive $chan"
}

Can someone pls correct my codings?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

DCC is not an issue here.

Never think of a script as sending DCC commands. Usualy, if there is a way to do somthing in DCC, you can do it in script without any of the facy stuff (with the exception of items that need to broadcast commands, and wait for replies).

See tcl-commands.doc for information on this.

Also note, the config file, in reality is just a plain Tcl script. Thus Tcl commands are being used to configure items like channels and servers.

The channels configuration shows a good example on how you set a channel -inactive in Tcl. So see the config fiel for an example.
Locked