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.

neophyte scripter learning but dumpfile not working?

Help for those learning Tcl or writing their own scripts.
Post Reply
M
MacGyver
Voice
Posts: 9
Joined: Mon Apr 26, 2004 3:12 am
Location: Dark side of the moon

neophyte scripter learning but dumpfile not working?

Post by MacGyver »

Code: Select all

bind pub - !msg msgsend

set myfile "/home/MacGyver/storage/grab.key"

proc msgsend {nick uhost hand chan arg} {
global myfile
  dumpfile $nick $myfile
}
now the grab.key is just a simple ascii text file one line

and but i am not seeing any output and no errors on the party line logged in as owner as I do it.

Sir Fz kindly got me started with a script example I have requested previous and I am pouring over faq's and examples and searching fast as I can. been running an eggdrop a few years but want to start learning and having more fun.
Mac
M
MacGyver
Voice
Posts: 9
Joined: Mon Apr 26, 2004 3:12 am
Location: Dark side of the moon

Post by MacGyver »

os is linux, the bot is in the same user home as the file and definitely has permission for the file. I just don't understand what me missing but it must be something obvious.

I even thought maybe I had left some module out required but the docs say its in the core module so I rebuilt 1.6.18 and no change.

just has me puzzled appreciate any input why the dumpfile script above is not working or coughing out an error why its not.
Mac
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Because dumpfile only sends text from a file in the bot's helpfile dir, according to the documentation. Read the tcl-commands.doc that comes with eggdrop.
M
MacGyver
Voice
Posts: 9
Joined: Mon Apr 26, 2004 3:12 am
Location: Dark side of the moon

Post by MacGyver »

thanks blush, that was almost good enough for rtfm chuckle I know I look at that command about 20 times just never noticed that. thanks again. :roll:
Mac
Post Reply