rmmh / skybot

Python IRC bot
https://github.com/rmmh/skybot/wiki
The Unlicense
249 stars 170 forks source link

I wrote a stock plugin #16

Closed sklnd closed 13 years ago

sklnd commented 13 years ago

We need stock lookups !!!!

sklnd commented 13 years ago

Small fix for stock coloring: diff --git a/plugins/stock.py b/plugins/stock.py index 7389547..ce3ff71 100644 --- a/plugins/stock.py +++ b/plugins/stock.py @@ -23,7 +23,7 @@ def stock(inp): if results['company'] == "": return "Unknown ticker symbol %s" % inp

-    if results['change'][1] == '-':
+    if results['change'][0] == '-':
         results['color'] = "5"
     else:
         results['color'] = "3"
rmmh commented 13 years ago

Done, thanks!