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.

script wont run

General support and discussion of Eggdrop bots.
Post Reply
p
prassel
Voice
Posts: 10
Joined: Sun Apr 08, 2007 6:52 pm

script wont run

Post by prassel »

my script:

Code: Select all

bind pub - lion lion_run

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

Code: Select all

........
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: Select all

./eggdrop eggdrop.conf
and get a little message:

Code: Select all

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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

[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.
p
prassel
Voice
Posts: 10
Joined: Sun Apr 08, 2007 6:52 pm

Post by prassel »

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?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
p
prassel
Voice
Posts: 10
Joined: Sun Apr 08, 2007 6:52 pm

Post by prassel »

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: Select all

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
p
prassel
Voice
Posts: 10
Joined: Sun Apr 08, 2007 6:52 pm

Post by prassel »

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

yay i got it working now!

thank u all for pointing me in the right direction :)
Post Reply