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.

help with script

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

help with script

Post by Fire-Fox »

hey

i need some help with this script here

Code: Select all

bind pub - !admin help.staff 
bind pub - !staff help.staff

proc help.staff {nick host hand chan arg} { 
  foreach nicks [split [chanlist #Piratezone]] { 
    if {[isop $nicks]} { 
      if {[string tolower $nicks]=="bob" || [string tolower $nicks]=="sitebot" || [string tolower $nicks]=="tpz" } {
      # [string match -nocase Apache* $nicks] || [string match -nocase Fedtmule* $nicks]
      } else {
        append o "$nicks "
      }
    }
  }
  
  putserv "privmsg $chan : 04$nick ::: Din admodning er sendt til staff "
  putserv "privmsg #piratezone.staff : 04$nick Søger Hjælp Hos En Af Følgende Staff Medlemmer::: $o "
}
how can i put in so when some on use it like this "!staff help with bot setup"

now it's just "!staff" and it return a text in another chan, but will love if i comes to the the staff with tags ~ - & - @

bottom line i need reason into the script but cant se how
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

http://forum.egghelp.org/viewtopic.php?t=15535&start=6

This script accomplishes the same thing, but doesn't give users the admin's names. Instead you build a list of your admins, and the bot will message those admins when a user requires assistance.

The script above may just give you the inspiration (code you can steal..erm, borrow..heh) to do it yourself.. :)
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

Thanks alot :)
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Post Reply