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.
Old posts that have not been replied to for several years.
RaZ
Voice
Posts: 3 Joined: Fri Jul 29, 2005 8:10 pm
Post
by RaZ » Fri Jul 29, 2005 9:07 pm
Hello,
I've use this to decrypt
http://forum.egghelp.org/viewtopic.php?t=4269 but my bot no responding in channel with this code:
set key "keytest"
bind pub - "#test *" decryptall
proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
eval [$nick $uhost $handle $chan $arg]
}
Please, help me, i'm noobie
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Fri Jul 29, 2005 10:12 pm
what is that [eval] supposed to do?
you are confused with Tcl syntax, square brackets mean command substitution, and $nick is not a Tcl command
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Sat Jul 30, 2005 2:55 am
Code: Select all
putserv "PRIVMSG $chan :arg = $arg"
You obviously didn't read the posted code correctly. There's no mention of [eval]. Replace that line with the one above.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
RaZ
Voice
Posts: 3 Joined: Fri Jul 29, 2005 8:10 pm
Post
by RaZ » Sat Jul 30, 2005 5:31 am
with
putserv "PRIVMSG $chan :arg = $arg"
its ok but the bot no reply, example:
set key "keytest"
bind pub - !test pub:test
bind pub - "#test *" decryptall
proc pub:test { nick uhost handle channel arg } {
putquick "PRIVMSG $channel :HELLO"
}
proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
putserv "PRIVMSG $chan :arg = $arg"
}
but i f i wrote !test, the bot dont reply "HELLO"
RaZ
Voice
Posts: 3 Joined: Fri Jul 29, 2005 8:10 pm
Post
by RaZ » Sat Jul 30, 2005 8:37 am
fixed!
set proc [pub:test $nick $uhost $handle $channel [string range $arg 0 9999]]
Thanks
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Jul 30, 2005 11:09 am
RaZ wrote: with
putserv "PRIVMSG $chan :arg = $arg"
its ok but the bot no reply, example:
set key "keytest"
bind pub - !test pub:test
bind pub - "#test *" decryptall
proc pub:test { nick uhost handle channel arg } {
putquick "PRIVMSG $channel :HELLO"
}
proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
putserv "PRIVMSG $chan :arg = $arg"
}
but i f i wrote !test, the bot dont reply "HELLO"
bot's own output doesn't get echoed back to it (only to other channel members, not to message originator), so the bind doesn't get triggered; you cannot test your scripts this way