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.
Help for those learning Tcl or writing their own scripts.
-
ben
- Voice
- Posts: 4
- Joined: Sat Jun 16, 2007 5:00 pm
Post
by ben »
No idea why, im getting this error:
Code: Select all
Tcl error [msg:helloonrequest]: wrong # args: should be "msg:helloonrequest nick uhost handle channel arg"
And here's the src:
Code: Select all
bind msg - sayhellotome msg:helloonrequest
proc msg:helloonrequest { nick uhost handle channel arg } {
putserv "NOTICE $nick :Hello"
}
Any help will be much appreciated.
-
ap
- Halfop
- Posts: 44
- Joined: Fri Jun 09, 2006 12:20 am
Post
by ap »
if you're after /msg command then MSG bind required 4 arguments and you're using 5
if you're after pub bind and you like to use the public command then you're using the wrong bind
Code: Select all
bind pub - !sayhellotome msg:helloonrequest
proc msg:helloonrequest { nick uhost hand chan text } {
putserv "NOTICE $nick :Hello"
}
and type !sayhellotome
If you want on join hello by your bot then use JOIN BIND
Code: Select all
bind join - * msg:helloonrequest
proc msg:helloonrequest { nick uhost hand chan } {
putserv "NOTICE $nick :Hello"
}