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.

Simple Say

Old posts that have not been replied to for several years.
Locked
r
roller
Voice
Posts: 11
Joined: Fri Apr 23, 2004 5:55 pm

Simple Say

Post by roller »

Hi! I need tcl whats do this:

if some1 say to the channel !url game then the bot say #chan www.games.com and if some1 say !url apps then http://www.apps.com/

thanx 4 all
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pub - !url my:url

proc my:url {nick uhost hand chan text} {
  switch -- [string tolower [lindex $text 0]] {
    "game" {
      putserv "PRIVMSG $chan :The game url is: www.gameurl.com"
      return
    }
    "apps" {
      putserv "PRIVMSG $chan :The apps url is: www.appsurl.com"
      return
    }
    default {
      putserv "PRIVMSG $chan :USAGE: !url game or !url apps"
    }
  }
}
Once the game is over, the king and the pawn go back in the same box.
r
roller
Voice
Posts: 11
Joined: Fri Apr 23, 2004 5:55 pm

Post by roller »

big thnx
Locked