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.

need help ^^

Old posts that have not been replied to for several years.
Locked
e
equal1zer

need help ^^

Post by equal1zer »

i've tried to make this tcl script, but i have not succeded. I want to make a script that do following things:

- if somebody write something on a chan etc .. *word1*, *word2* ..
- only in #chan1, #chan2 and #chan3
- then i want the bot to copy the hole line that contain one of the words and add [ /msg $nick word1 ] behind..

I also want a script that kick $nick if he part #otherchan if he is on #mychan

and a script that invite a person to #otherchan if he type !chan in #mychan , like i've tried to do with this:

Code: Select all

bind pub - !chan pub:!chan

proc pub:!chan {nick host hand chan arg} {
	global botnick
	if {[llength $arg] > 1} {
		notice $nick "Usage: !chan nothing more"
	}
        notice $nick join #otherchan join here..
        invite $nick #otherchan
	}
        return 1
}
Locked