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 

script wont run

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


Joined: 08 Apr 2007
Posts: 10

PostPosted: Sun Apr 08, 2007 7:07 pm    Post subject: script wont run Reply with quote

my script:
Code:

bind pub - lion lion_run

proc lion_run {nick host hand chan text}
{
 putserv "privmsg $chan :run!"
}


eggdrop.conf:
Code:

........
source scripts/lion.tcl
...........


'lion.tcl' is located in the scripts folder


i log on to my shell using putty
after 'cd eggdrop' i do:
Code:
./eggdrop eggdrop.conf

and get a little message:
Code:
Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[23:03] --- Loading eggdrop v1.6.18 (Sun Apr  8 2007)
[23:03] * Please make sure you edit your config file completely.


then i screen bitchx and join my channel, but when i type lion the bot doesnt respond.

a friend tried on his eggdrop and it worked
the script cant have loaded, but why?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 08, 2007 8:02 pm    Post subject: Reply with quote

Quote:
[23:03] * Please make sure you edit your config file completely.

You have to do EXACTLY as it told you in order to successfully run it.

You might want to check out the links on the left at www.egghelp.org.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
prassel
Voice


Joined: 08 Apr 2007
Posts: 10

PostPosted: Sun Apr 08, 2007 9:57 pm    Post subject: Reply with quote

ok, i got my egg to my channel and the scripts are loading.
but still it wont even greet me with the greet script i dled from the archive :/

i've tried rehashing and reloading the config file but no luck

someone got a clue what im doing wrong?
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Mon Apr 09, 2007 12:03 am    Post subject: Reply with quote

Check the .binds command from inside the dcc console and see if your script is really being loaded.. Most people put "putlog "Scriptname LOADED" or something at the end of the scripts so they can tell they did get loaded.. Next step would also be reading the various faqs and helpfiles around the forum about how to debug things.
Back to top
View user's profile Send private message
prassel
Voice


Joined: 08 Apr 2007
Posts: 10

PostPosted: Mon Apr 09, 2007 6:46 am    Post subject: Reply with quote

the script got putlog at the end and i can see it in putty when i load eggbot.conf

heres what i got from .bind
Code:
12:46:16 ‹kiwibot› join -|- * 1 holm-join_greet
12:46:16 ‹kiwibot› pub -|- bufu? 0 bufu
12:46:16 ‹kiwibot› pub -|- lion 0 run
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 09, 2007 8:09 am    Post subject: Reply with quote

If you write lion on your channel then your bot will respond with run!. As for your greet script, we can't help you since we can't see its source-code.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
prassel
Voice


Joined: 08 Apr 2007
Posts: 10

PostPosted: Mon Apr 09, 2007 9:43 am    Post subject: Reply with quote

problem is that is doesnt reply at all.....

yay i got it working now!

thank u all for pointing me in the right direction Smile
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 -> Eggdrop 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