egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

neophyte scripter learning but dumpfile not working?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
MacGyver
Voice


Joined: 26 Apr 2004
Posts: 9
Location: Dark side of the moon

PostPosted: Sun Jul 01, 2007 12:16 pm    Post subject: neophyte scripter learning but dumpfile not working? Reply with quote

Code:
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
Back to top
View user's profile Send private message
MacGyver
Voice


Joined: 26 Apr 2004
Posts: 9
Location: Dark side of the moon

PostPosted: Mon Jul 02, 2007 7:47 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Jul 02, 2007 8:30 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
MacGyver
Voice


Joined: 26 Apr 2004
Posts: 9
Location: Dark side of the moon

PostPosted: Tue Jul 03, 2007 1:41 am    Post subject: Reply with quote

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. Rolling Eyes
_________________
Mac
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber