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 

Bind Event [ On Text ] with a small DB

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Sat Aug 18, 2007 12:49 pm    Post subject: Bind Event [ On Text ] with a small DB Reply with quote

Hello Smile

Me once again, who needs help ^^

I've this small script. It works. I replace TEXT with whatever i want the Bot to "react" on.

What i wish is, that Op's can add .. using a trigger like:

!add Blubb ( thats instead of the TEXT ) and the Message ( which should come as a PRIVMSG.

This is what i have ^^

Code:

bind pubm - "*TEXT*" pub_TEXT

proc pub_TEXT {nick uhost hand chan rest} {
putserv "PRIVMSG $chan : Message.."
return 0
}


Hopefully someone can help me again Smile

Thx
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Aug 20, 2007 9:53 am    Post subject: Reply with quote

This thread should help you out.
_________________
Follow me on GitHub

- Opposing

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


Joined: 07 Aug 2007
Posts: 67

PostPosted: Mon Aug 20, 2007 2:10 pm    Post subject: Reply with quote

Thats what i'm looking for ! Smile Great and Thank you !

What i "wish" Smile

Now the commands is bind on one Word after ther !addcommand, like:

!addcommand test

Is it possible to bind 2 or more Words ? like:

!addcommand test test2

If someone writes in the Channel eg: test test2 OR and thats one more wish^^:

hello you test test2 - so that the position does not matter.

I don't know how much work this is or if it's possible but i would appreciate .. if you'll find time Smile Smile

If i should have used the other thread.. sorry, than i'll delete and post there
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 -> Script Requests 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