we all have to start somewhere
I suggest taking a look at the tcl-commands.doc that comes with your eggdrop.. lot's of nice commands in there, one you might find interesting is
(6) PUBM (stackable)
bind pubm <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <text>
Description: just like MSGM, except it's triggered by things said
on a channel instead of things /msg'd to the bot. The mask is
matched against the channel name followed by the text and can
| contain wildcards. If the proc returns 1, Eggdrop will not log
| the message that triggered this bind. PUBM binds are processed
| before PUB binds. If the exclusive-binds setting is enabled,
| PUB binds will not be trigged by text that a PUBM bind has
| already handled.
Module: irc
one thing though:
Code: Select all
proc pub:love {nick uhost hand chan args} {
args has a special meaning in tcl and I would us something like
arg or
text until you have properly learned how to handle args.
It will make no difference on your script since you are not using args further anyway, but keep it in mind if you should continue writing scripts