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 

On text help

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Tue Sep 06, 2005 5:22 pm    Post subject: On text help Reply with quote

Hello, IŽd like my eggdrop to say a certain message into a channel if an user writes a keyword. For instance he writes "hi "and the eggdrop says a certain message (like: hi, how are you?)

Can someone please help me? Thanks so much.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Sep 06, 2005 5:31 pm    Post subject: Reply with quote

try to help yourself by reading all-you-need-to-know-about-eggdrop-scripting file named tcl-commands.doc, included with eggdrop

hints: pay attention to [bind] command, which allows you to set up triggers that will be fired up on events like, for example, saying something on channel

more hints: you need to use [bind pubm] and [putserv]

(if you don't know Tcl, you should take some time off posting here and learn some Tcl basics)
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Sep 06, 2005 5:41 pm    Post subject: Reply with quote

Also, there already exist such scripts (ai).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Sep 06, 2005 9:41 pm    Post subject: Reply with quote

...and there is even AI (artificial intelligence) module called MegaHAL, which supposedly tries to make the bot to look 'smarter' by learning (automatically adding) new phrases to bot's dictionary
Back to top
View user's profile Send private message Visit poster's website
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Wed Sep 07, 2005 1:31 am    Post subject: Reply with quote

yes, but i am slowly sick of being referred to tuts. whats a forum then for? can someone write it here? shouldnt be to hard to copy it out of your scripts. thanks Sad
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Sep 07, 2005 2:15 am    Post subject: Reply with quote

well, let us see... did you even bother to look at [bind]'s description in tcl-commands.doc? if so, what exactly is it you didn't understand? what about [putserv]? I bet you did not

I, for one, won't write a single line of code for a person who is not willing to do a minimal effort to also help themselves (and I suspect that handful of people who contribute code for these forums feel the same way) - if you are sick of this, I feel sorry for you but that's that
Back to top
View user's profile Send private message Visit poster's website
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Wed Sep 07, 2005 6:49 pm    Post subject: Reply with quote

ok is this correct?


Code:


bind pub - <TRIGGERWORD> pub:homepage

proc pub:homepage { nick uhost handle channel arg } {
putserv "PRIVMSG $channel : <MSG TO CHANNEL>

}
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Sep 07, 2005 9:01 pm    Post subject: Reply with quote

that is awesome Smile

just put closing quotes (") at the end of [putserv] statement
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 08, 2005 6:32 am    Post subject: Reply with quote

and note that the current example will beging with a space, just in case it matters ^-^. The text should start right after the ":".
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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