Any idea where can I find it? Tried egghelp.org and tclscript's but seems that it doesn't find any tcl that fit my needs... (noob about tcl scripting/coding) ;P
WeiJie
Admin of IntelFusion Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
#Usage: !explain microsoft
#Set the word here to match.
set explainword "mircosoft"
#Set the website matching the word here to display.
set explaindef "http://www.microsoft.com/"
### SCRIPT ###
bind pub n !explain explanation
explanation {nick uhost hand chan text} {
global botnick explainword explaindef
if {([string equal -nocase $explainword [lindex $text 0]])} {
putserv "PRIVMSG $chan :The website for $explainword is: $explaindef"; return 0
}
}
Something like this should work if this is what you are trying todo.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
#Usage: !explain microsoft
#Set the word here to match.
set explainword "mircosoft"
#Set the website matching the word here to display.
set explaindef "http://www.microsoft.com/"
### SCRIPT ###
bind pub n !explain explanation
explanation {nick uhost hand chan text} {
global botnick explainword explaindef
if {([string equal -nocase $explainword [lindex $text 0]])} {
putserv "PRIVMSG $chan :The website for $explainword is: $explaindef"; return 0
}
}
Something like this should work if this is what you are trying todo.
WeiJie
Admin of IntelFusion Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
The problem with this is I dont know how to specify the channel I want the bot to only respond in. I have the bot in 3 channels and I would like the bot to respond to those commands only in 1 out of the 3 channels.
The problem with this is I dont know how to specify the channel I want the bot to only respond in. I have the bot in 3 channels and I would like the bot to respond to those commands only in 1 out of the 3 channels.
#Will respond to the channel where the command ".commands" is triggered.
putserv "NOTICE $chan :My Message"
#Will respond to the channel you will specify it to respond on.
putserv "NOTICE #mychannel :My Message"
#Conclusion
$chan = The channel where the script is triggered on.
#channel = Any channel where you want to display your message on.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================