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 

Did I do this wrong?

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


Joined: 01 Apr 2018
Posts: 30

PostPosted: Sat Apr 07, 2018 5:21 am    Post subject: Did I do this wrong? Reply with quote

I wrote this and thought it would work...

Code:
bind join - "{vivi}D!*@*" vi_join
proc vi_join {nick uhost handle chan text} {
    putserv "privmsg $chan :\001ACTION watches as $nick enters and goes over and whispers in Draknon's ear... 5Sir, your baby girl is here. 3Welcome home pixie princess vivi."
}


purpose= when the person with nick {vivi}D joins the channel it should do the action in the channel of ...
watches as $nick enters and goes over and whispers in Draknon's ear... 5Sir, your baby girl is here. 3Welcome home pixie princess vivi.

It is not working and I see no error msg.
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 957

PostPosted: Sat Apr 07, 2018 12:14 pm    Post subject: Re: Did I do this wrong? Reply with quote

Draknon wrote:

...
It is not working and I see no error msg.


Then something is wrong. Because you should see error messages.

Perhaps you don't have enough flags on your console.
Do: .console
To get it to show you your current console flags. Then do:
.help console
to get a list of available flags. Read about them, and add those to your console that you think would make it so that you can properly see what is going on.

You have the wrong number of parameters for the proc that is called by the bind join. That's an error.

Again, this should show up in the partyline.

But, (again) if you would use : http://paste.tclhelp.net/
it too would show them to you.

Lastly, (again) keep this:
http://docs.eggheads.org/mainDocs/tcl-commands.html
open in a tab. It clearly shows you the correct number of parameters for a bind join. All binds are there, and you need this document to know how to use them.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
Draknon
Voice


Joined: 01 Apr 2018
Posts: 30

PostPosted: Sun Apr 08, 2018 3:58 am    Post subject: Reply with quote

I really appreciate all the help.. I am just having a hard time understanding all of this.. I am one of those people that I need the line and what is does and an example of it being used and the explanation of why.

so again thank you and please be patient as I have a difficult time reading and learning the new language.

Quote:
But, (again) if you would use : http://paste.tclhelp.net/
it too would show them to you.


that is freakin awesome now that I understand how to use it. I don't understand everything yet, but it is very helpful.
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 957

PostPosted: Sun Apr 08, 2018 9:12 am    Post subject: Reply with quote

Draknon wrote:
I really appreciate all the help.. I am just having a hard time understanding all of this.. I am one of those people that I need the line and what is does and an example of it being used and the explanation of why.


Those things help everybody.

But also, it is good to know WHERE to look things up, and do so - often.
At least until you get used to that thing you are looking up every time.
Once you get it down pat, spend your time looking up something else.
Until you get it down pat.
And so on, and so on.....

Quote:

so again thank you and please be patient as I have a difficult time reading and learning the new language.


That's because it is unfamiliar to you.
I agree... it can be frustrating.
Just don't let the frustration get in the way, and stop you.
Because... it doesn't last long. If you practice, you get familiar, and poof! that frustration is gone.

Quote:

now that I understand how to use it.


Good ! If you've found a tool that helps.... go for it.

Quote:

I don't understand everything yet,


Who does?
Smile

Quote:

but it is very helpful.


Great. Forward, then. Write scripts. Little, simple, easy ones. Have fun. Crash your bot some. Learn how to interpret those crash messages.
It's called learning by practicing.

Have fun with your Eggdrop bot. Smile
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
Draknon
Voice


Joined: 01 Apr 2018
Posts: 30

PostPosted: Mon Apr 09, 2018 1:58 am    Post subject: Reply with quote

all good, thanks for the help
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