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.
-
manwlhsgr
- Voice
- Posts: 6
- Joined: Tue Feb 27, 2007 4:59 pm
Post
by manwlhsgr »
HI i want if !memo nick msg , my bot send memo
i have write a pub command bat dont work..
bind pub - !memo memo_pub
proc memo_pub { nick uhost hand chan text } {
global botnick
putserv "PRIVMSG
memoserv@services.downweb.gr send manwlhs reason"
}
please helpme
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Replace
Code: Select all
putserv "PRIVMSG memoserv@services.downweb.gr send manwlhs reason"
with
Code: Select all
putserv "PRIVMSG memoserv@services.downweb.gr :send manwlhs reason"
Notice the ":"
-
manwlhsgr
- Voice
- Posts: 6
- Joined: Tue Feb 27, 2007 4:59 pm
Post
by manwlhsgr »
oh sorry!
bind pub - !memo memo_pub
proc memo_pub { nick uhost hand chan text } {
global botnick
putserv "PRIVMSG
memoserv@services.downweb.gr send ?
}
And when i write on my channel !memo send Manwlhs reason
the bot send memo a this person.
I want if write !memo HERE_NICKNAME HERE_REASON
my bot send memo.
my pub dont work:(
unterstand me?:<
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Code: Select all
bind pub - !memo memo_pub
proc memo_pub {nick uhost hand chan text} {
if {[scan $text "%s%\[^\0\]" targ msg] != 2} {
puthelp "privmsg $chan :Syntax: !memo <nickname> <message>"
return 0
}
putserv "privmsg memoserv@services.downweb.gr :send $targ $msg"
}