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.

Bind Event [ On Text ] with a small DB

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Bind Event [ On Text ] with a small DB

Post by Elfriede »

Hello :)

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

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 :)

Thx
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This thread should help you out.
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

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

What i "wish" :)

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 :) :)

If i should have used the other thread.. sorry, than i'll delete and post there
Post Reply