<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16381" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-10-01T02:10:47-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16381</id>

		<entry>
		<author><name><![CDATA[darla]]></name></author>
		<updated>2014-10-01T02:10:47-04:00</updated>

		<published>2014-10-01T02:10:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103231#p103231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103231#p103231"/>
		<title type="html"><![CDATA[update for stock.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103231#p103231"><![CDATA[
I appreciate the script, but was wondering if this could be added? I believe it would be useful to stocks, but if it's too much effort then don't bother. Smile<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12432">darla</a> — Wed Oct 01, 2014 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dalek]]></name></author>
		<updated>2014-06-21T08:47:10-04:00</updated>

		<published>2014-06-21T08:47:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102916#p102916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102916#p102916"/>
		<title type="html"><![CDATA[update for stock.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102916#p102916"><![CDATA[
Hi,<br><br>I appreciate the script, but was wondering if this could be added? I believe it would be useful to stocks, but if it's too much effort then don't bother. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>I wanted something like this: bitstampUSD: $500, krakenUSD: $500, bitfinexUSD: $500, btceUSD: $500 with command !bitcoin, would this be possible? Also it would be awesome if you could add litecoin. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12407">Dalek</a> — Sat Jun 21, 2014 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[the_Wizard]]></name></author>
		<updated>2014-06-17T05:58:36-04:00</updated>

		<published>2014-06-17T05:58:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102909#p102909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102909#p102909"/>
		<title type="html"><![CDATA[update for stock.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102909#p102909"><![CDATA[
I was unable to find a way to fix the weird dow jones bug.<br><br><strong class="text-strong">Updates:</strong><br>- Gold and Oil actualized to June 2014<br>- Added Silver<br>- Added information for actualizing future versions in the readme.<br><div class="codebox"><p>Code: </p><pre><code>##################################################################################### Stock.tcl - 06/082008 by Liem, blu3 - www.suplemen.com# Updated 12/2008 by Icari# Realtime stock quotes, DOW, NASDAQ and S&amp;P information## Supported by:#   http://www.usenix.org/publications/login/1999-10/features/tclsh.html#http://www.tec.ufl.edu/~flooxs/cur/TclTk/tcl8.0/http.n.html## Special thx to #brilliant# ## .-------------------------------------------------------------------------------.#:           Usage - All Commands Are Performed In the Channel Publically         :#:--------------------------------------------------------------------------------:#:  !stockhelp      |  HELP                                               :#:  !stock &lt;Symbol&gt; |  Show stock price; ex: !stock TLKM      :#:  !dow    |  DJ INDU AVERAGE                                    :#:  !nasdaq    |  NAS/NMS COMPSITE                                   :#:  !s&amp;p    |  S&amp;P 500 INDEX                                      :#:  !10yearTN    |  10-YEAR TREASURY NOTE (U.S)                        :#:  !hsi    |  HANG SENG INDEX (^HSI)                             :#:  !nikkei    |  NIKKEI 225 (^N225)                                 :#:  !nikkei300    |  NIKKEI 300 (^N300)                                 :#:  !seoul    |  KOSPI Composite Index                              :#:  !STI    |  Straits Times Index                                :#:  !taiwan    |  TSEC weighted index (^TWII)                        :#:  !ftse    |  FTSE 100 (^FTSE)                                   :#:  !oil    |  Crude Oil Jan 08 (CLF08.NYM)                       :#:  !gold    |  Gold Nov 07 (GCX07.CMX)                            :#:  !silver|  Silver Jun 14 (SIM14.CMX)# ._______________________________________________________________________________.##  Silver added &amp; actualized by the_Wizard. Some notes:##  To actualize in the future, visit this site for commodity filenames#  https://finance.yahoo.com/futures##  To actualize in the future, visit this site for stock filenames#  https://finance.yahoo.com/######################################################################################package require httpbind pub - !stockhelp pub:quotehelpbind pub - !stock pub:quotebind pub - !ihsg pub:ihsgbind pub - !dow pub:dowbind pub - !nasdaq pub:nasdaqbind pub - !s&amp;p pub:sandpbind pub - !hsi pub:hsibind pub - !sti pub:stibind pub - !nikkei pub:nikkeibind pub - !seoul pub:seoulbind pub - !taiwan pub:taiwanbind pub - !ftse pub:ftsebind pub - !10yearTN pub:10yearTNbind pub - !oil pub:oilbind pub - !gold pub:goldbind pub - !silver pub:silverproc pub:quotehelp { nick uhost handle channel arg } {putserv "NOTICE $channel :Index (Real Time) - !dow !nasdaq ! !s&amp;p !hsi !nikkei !seoul !sti !taiwan !ftse"putserv "NOTICE $channel :Commodity (Real Time) - !oil !gold !silver"putserv "NOTICE $channel :Other (Real Time) - !10yearTN"putserv "NOTICE $channel :-"putserv "NOTICE $channel :Stock - !Stock &lt;symbol&gt;"putserv "NOTICE $channel :Ex: !stock TLKM"}proc pub:quote { nick uhost handle channel arg } {if {[llength $arg]==0} {putserv "PRIVMSG $channel :!stock Type (!stock CODE) - eg !stock TLKM - Type !stockhelp for Option"} else {        set stock [string toupper [lindex $arg 0]]set query "http://download.finance.yahoo.com/d/quotes.csv?s=$stock&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]#debug below#putserv "PRIVMSG $channel :\002STOCK: $stock "#putserv "PRIVMSG $channel :\002QUERY: $query "#If stock price is 0.00 the stock most likely doesn't exist.if {[lindex $all 3]!="N/A"} {if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002\00303  [lindex $all 1] \003 (\00303[lindex $all 4]\003) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002\00304  [lindex $all 1] \003 (\00304[lindex $all 4]\003) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002  [lindex $all 1] ([lindex $all 4]) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"}}} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; Stock not found"}     }}proc pub:gold { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&amp;e=.csv&amp;s=GCN14.CMX"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:oil { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=CLN14.NYM&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:silver { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=SIM14.CMX&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Silver Price) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Silver Price) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Silver Price) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:ihsg { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EJKSE&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:dow { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EDJI&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:nikkei { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EN225&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:ftse { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EFTSE&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:taiwan { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ETWII&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:seoul { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EKS11&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:10yearTN { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ETNX&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:nasdaq { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EIXIC&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:sti { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ESTI&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:hsi { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EHSI&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:sandp { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EGSPC&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}putlog "Stock.tcl v1.1 - 23/102007 by Liem, blu3 - www.suplemen.com LOADED.."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12405">the_Wizard</a> — Tue Jun 17, 2014 5:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Icari]]></name></author>
		<updated>2008-12-01T17:55:24-04:00</updated>

		<published>2008-12-01T17:55:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86038#p86038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86038#p86038"/>
		<title type="html"><![CDATA[update for stock.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86038#p86038"><![CDATA[
this is an update for the following tcl script <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1524" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1524</a><br>The orginal script works fine just the links to yahoo got updated in this version to work.<br><div class="codebox"><p>Code: </p><pre><code>##################################################################################### Stock.tcl - 06/082008 by Liem, blu3 - www.suplemen.com# Realtime stock quotes, DOW, NASDAQ and S&amp;P information## Supported by:#   http://www.usenix.org/publications/login/1999-10/features/tclsh.html#http://www.tec.ufl.edu/~flooxs/cur/TclTk/tcl8.0/http.n.html## Special thx to #brilliant# ## .-------------------------------------------------------------------------------.#:           Usage - All Commands Are Performed In the Channel Publically         :#:--------------------------------------------------------------------------------:#:  !stockhelp        |  HELP                                               :#:  !stock &lt;Symbol&gt;   |  Show stock price; ex: !stock TLKM    :#:  !dow    |  DJ INDU AVERAGE                                    :#:  !nasdaq    |  NAS/NMS COMPSITE                                   :#:  !s&amp;p    |  S&amp;P 500 INDEX                                      :#:  !10yearTN    |  10-YEAR TREASURY NOTE (U.S)                        :#:  !hsi    |  HANG SENG INDEX (^HSI)                             :#:  !nikkei    |  NIKKEI 225 (^N225)                                 :#:  !nikkei300    |  NIKKEI 300 (^N300)                                 :#:  !seoul    |  KOSPI Composite Index                              :#:  !STI    |  Straits Times Index                                :#:  !taiwan    |  TSEC weighted index (^TWII)                        :#:  !ftse    |  FTSE 100 (^FTSE)                                   :#:  !oil    |  Crude Oil Jan 08 (CLF08.NYM)                       :#:  !gold    |  Gold Nov 07 (GCX07.CMX)                            :# ._______________________________________________________________________________.## rm -rf /bin/laden#####################################################################################package require httpbind pub - !stockhelp pub:quotehelpbind pub - !stock pub:quotebind pub - !ihsg pub:ihsgbind pub - !dow pub:dowbind pub - !nasdaq pub:nasdaqbind pub - !s&amp;p pub:sandpbind pub - !hsi pub:hsibind pub - !sti pub:stibind pub - !nikkei pub:nikkeibind pub - !seoul pub:seoulbind pub - !taiwan pub:taiwanbind pub - !ftse pub:ftsebind pub - !10yearTN pub:10yearTNbind pub - !oil pub:oilbind pub - !gold pub:goldproc pub:quotehelp { nick uhost handle channel arg } {putserv "NOTICE $channel :Indeks (Real Time) - !dow !nasdaq ! !s&amp;p !hsi !nikkei !seoul !sti !taiwan !ftse"putserv "NOTICE $channel :Commodity (Real Time) - !oil !gold"putserv "NOTICE $channel :Other (Real Time) - !10yearTN"putserv "NOTICE $channel :-"putserv "NOTICE $channel :Stock - !Stock &lt;symbol&gt;"putserv "NOTICE $channel :Ex: !stock TLKM"}proc pub:quote { nick uhost handle channel arg } {if {[llength $arg]==0} {putserv "PRIVMSG $channel :!stock Type (!stock CODE) - eg !stock TLKM - Type !stockhelp for Option"} else {        set stock [string toupper [lindex $arg 0]]set query "http://download.finance.yahoo.com/d/quotes.csv?s=$stock&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]#debug below#putserv "PRIVMSG $channel :\002STOCK: $stock "#putserv "PRIVMSG $channel :\002QUERY: $query "#If stock price is 0.00 the stock most likely doesn't exist.if {[lindex $all 3]!="N/A"} {if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002\00303  [lindex $all 1] \003 (\00303[lindex $all 4]\003) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002\00304  [lindex $all 1] \003 (\00304[lindex $all 4]\003) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; \00302[lindex $all 2]\003 | \002Last\002  [lindex $all 1] ([lindex $all 4]) | \002Vol.\002  [lindex $all 5] | \00252 Week Range\002 [lindex $all 6]"}}} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 -&gt; Stock not found"}     }}proc pub:gold { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&amp;e=.csv&amp;s=GCZ08.CMX"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Gold Price) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:oil { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=CLF09.NYM&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Crude Oil Price) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:ihsg { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EJKSE&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Jakarta Composite Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:dow { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&amp;e=.csv&amp;s=^DJI"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (DJ INDU AVERAGE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:nikkei { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EN225&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NIKKEI 225) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:ftse { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EFTSE&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (FTSE 100) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:taiwan { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ETWII&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (TSEC weighted index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:seoul { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EKS11&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (KOSPI Composite Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:10yearTN { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ETNX&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (10-YEAR TREASURY NOTE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:nasdaq { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EIXIC&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (NASDAQ COMPOSITE) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:sti { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5ESTI&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (Straits Times Index) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:hsi { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EHSI&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (HANG SENG INDEX) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}proc pub:sandp { nick uhost handle channel arg } {set query "http://download.finance.yahoo.com/d/quotes.csv?s=%5EGSPC&amp;f=sl1d1t1c1ohgv&amp;e=.csv"set token [http::geturl $query]set all [http::data $token] regsub -all \" $all "" allset plus [split $all "+"]set all [split $all ","]if {[lindex $plus 1]!=""} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; \00303[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {if {[lindex $all 4]!="0"} {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; \00304[lindex $all 1] [lindex $all 4]\003 | [lindex $all 2] [lindex $all 3]"} else {putserv "PRIVMSG $channel :\002[lindex $all 0]\002 (S&amp;P 500 INDEX) -&gt; [lindex $all 1] [lindex $all 4] | [lindex $all 2] [lindex $all 3]"}}}putlog "Stock.tcl v1.1 - 23/102007 by Liem, blu3 - www.suplemen.com LOADED.."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10339">Icari</a> — Mon Dec 01, 2008 5:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
