| View previous topic :: View next topic |
| Author |
Message |
prassel Voice
Joined: 08 Apr 2007 Posts: 10
|
Posted: Sun Apr 08, 2007 7:07 pm Post subject: script wont run |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 08, 2007 8:02 pm Post subject: |
|
|
| 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 |
|
 |
prassel Voice
Joined: 08 Apr 2007 Posts: 10
|
Posted: Sun Apr 08, 2007 9:57 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Apr 09, 2007 12:03 am Post subject: |
|
|
| 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 |
|
 |
prassel Voice
Joined: 08 Apr 2007 Posts: 10
|
Posted: Mon Apr 09, 2007 6:46 am Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Apr 09, 2007 8:09 am Post subject: |
|
|
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 |
|
 |
prassel Voice
Joined: 08 Apr 2007 Posts: 10
|
Posted: Mon Apr 09, 2007 9:43 am Post subject: |
|
|
problem is that is doesnt reply at all.....
yay i got it working now!
thank u all for pointing me in the right direction  |
|
| Back to top |
|
 |
|