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 

Need a script line
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Fri Apr 18, 2008 11:40 am    Post subject: Reply with quote

I take your point regarding confusing people. Let me try as simple an explanation as I can make it then. I need a command where, if you type a command to read a line, The bot reads the line # from a file in a folder and puts the line itself back in the channel;

<John> !folder filename line#
<Bot> Line1 this is the text on line 1

I can't think of a clearer way to put it. If you can by all means let me know.


Last edited by mabus on Fri Apr 18, 2008 11:45 am; edited 1 time in total
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Fri Apr 18, 2008 11:43 am    Post subject: Reply with quote

As you said, the command does not reply, it will be alot easier to fix the problem if you can paste the errorinfo.
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Fri Apr 18, 2008 11:46 am    Post subject: Reply with quote

Tosser yeah... there's no error info though.. It just doesn't reply at all. I know this is probably a bit of a pain in the neck for you, I really do appreciate you helping me.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri Apr 18, 2008 11:57 am    Post subject: Reply with quote

mabus wrote:
Tosser yeah... there's no error info though.. It just doesn't reply at all. I know this is probably a bit of a pain in the neck for you, I really do appreciate you helping me.

*sigh* .. time to get remedial, let's regress a bit and take some advice from demond.

Now after you've clicked demond's advice link, you surely understand how hard it is for a stale 'it gives no reply' to help troubleshoot anything. If you don't understand, now is the time to ask questions. If you do understand, your follow up post with .set errorInfo report should be forthcoming...

Edit: In reply to dragonlord's post below; Yes, certainly there are cases where .set errorInfo indicates no problems. But even this is helpful to prove where the logic errors are.


Last edited by speechles on Fri Apr 18, 2008 12:47 pm; edited 2 times in total
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Fri Apr 18, 2008 12:11 pm    Post subject: Reply with quote

I edited the post, give it a try...
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Apr 18, 2008 12:34 pm    Post subject: Reply with quote

I will now take the time to point out that sometimes when a script "does not work", there is also no errorInfo (one word, uppercase I, gives more information when the bot spews out errors on the partyline).
In some cases you may need to add some debugging code in the script (putlog, putidx, etc).
Back to top
View user's profile Send private message
mabus
Voice


Joined: 17 Jun 2005
Posts: 27

PostPosted: Fri Apr 18, 2008 12:45 pm    Post subject: Reply with quote

Same result, no reply. I tried the .set errorInfo command as suggested (immediately after the error) while logged in, and got back:

[11:42] #Mabus# set errorInfo
Currently:

So I guess it didn't detect any errors. I've also commented out all tcl's except test.tcl so there is no other conflict.

In case it helps, the command I am typing in channel is;

!txt test 1

The folder is txt
the file is test (no extension)
and line 1 reads: 1 this is a test

The bot does not reply at all when I type the command.
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 -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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