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.

very basic ..

Old posts that have not been replied to for several years.
Locked
o
otterboyy

Post by otterboyy »

Sorry for the very basic question. I am not a programer by any strech of the imagination. My eyes cross when trying to figure out even the basic scripts, but what I need to know is this:

what would be the easiest way to have the bot send a message to anyone that is currently in channel?

eg. someone says 'foo' in channel, I want the script to , when it see's 'foo' (and I think I have that part figured out), send 'bar' to all users currently in channel via a private message.

Thank you in advance!!

Otterboyy
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I didn't test this but it should work:

Code: Select all

bind pub - foo gotfoo
proc gotfoo {nick uhost hand chan text} {
  foreach person [chanlist $chan] {
    putserv "privmsg $person :bar"
  }
  return 0
}
Locked