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 simple script help

Old posts that have not been replied to for several years.
Locked
User avatar
Moose
Voice
Posts: 37
Joined: Mon Aug 18, 2003 2:54 am
Location: Northamption, UK
Contact:

very simple script help

Post by Moose »

i would like a script that send a message to a user when they type !request-format

i would like it binding to - bind pub -|- !request botrequestformat
but i cant seem to do it any ideas.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

read tcl-commands.doc, I'm sure u'll figure it out by yourself.
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

Code: Select all

bind pub -|- "!rules" chan:rules

proc chan:rules {nick uhost handle channel text} {
  global botnick
  set chan [string tolower $channel]
  if {![botisop $chan]} {return 0}
  puthelp "PRIVMSG $chan :1. The OPs make the rules."
  puthelp "PRIVMSG $chan :2. Read and learn rule number 1."
}

I once was an intelligent young man, now i am old and i can not remember who i was.
User avatar
Moose
Voice
Posts: 37
Joined: Mon Aug 18, 2003 2:54 am
Location: Northamption, UK
Contact:

Post by Moose »

thx all :)
Locked