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.

click on the site

Old posts that have not been replied to for several years.
Locked
E
EEggy
Op
Posts: 122
Joined: Thu Sep 26, 2002 11:46 pm

click on the site

Post by EEggy »

Hi, i was wondering is it possible in tcl that user type !help in the channel, and bot give the channel site link and then user just click on the link to get there? example will be appreciated.

advance thanks
EEggy
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

if the user can open the link by clicking depends on the client (mirc, etc)

the !help is no problem :

Code: Select all

proc help_pub { nick uhost hand chan text } {
  putserv "PRIVMSG $chan :Help can be found at www.help.com"
}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

also for example:

Code: Select all

bind pub - !help pub:help

proc pub:help {nick uhost hand chan text} {
set line [split $text]
set word [lindex $line 0]
 if {$word == "botnet"} {
  putserv "PRIVMSG $chan :visit http://www.egghelp.org/enhance.htm for help about $word"
} elseif {$word == "eggdrop"} {
  putserv "PRIVMSG $chan :visit http://www.egghelp.org/setup.htm for help about $word"
} else {
  putserv "PRIVMSG $chan :please specify one of the available help categories"
}
u can do something like that.
E
EEggy
Op
Posts: 122
Joined: Thu Sep 26, 2002 11:46 pm

Post by EEggy »

yeah, thank you so much for the help.
EEggy
Locked