@@ -0,0 +1,1387 @@
+%22%22%22Bitccoin ticker module for ppbot.%0A@package ppbot%0A%0ADisplays the current bitcoin pricing from mtgox%0A%0A@syntax btc%0A%0A%22%22%22%0Aimport requests%0Aimport string%0Aimport json%0Afrom xml.dom.minidom import parseString%0A%0Afrom modules import *%0A%0Aclass Bitcoin(Module):%0A%0A    def __init__(self, *args, **kwargs):%0A        %22%22%22Constructor%22%22%22%0A%0A        Module.__init__(self, kwargs=kwargs)%0A%0A        self.url = %22http://data.mtgox.com/api/1/BTCUSD/ticker%22%0A%0A    def _register_events(self):%0A        %22%22%22Register module commands.%22%22%22%0A%0A        self.add_command('btc')%0A%0A    def btc(self, event):%0A        %22%22%22Action to react/respond to user calls.%22%22%22%0A%0A        data = %7B%7D%0A%0A        try:%0A            result = self.lookup()%5B'return'%5D%0A            data%5B'high'%5D = result%5B'high'%5D%5B'display_short'%5D%0A            data%5B'last'%5D = result%5B'last_local'%5D%5B'display_short'%5D%0A            data%5B'low'%5D = result%5B'low'%5D%5B'display_short'%5D%0A            data%5B'volume'%5D = result%5B'vol'%5D%5B'display_short'%5D%0A            %0A            message = %22Last: %25(last)s - High/Low: (%25(high)s/%25(low)s) - Volume: %25(volume)s%22 %25 (data)%0A            self.msg(event%5B'target'%5D, message)%0A%0A        except:%0A            pass%0A        %0A    def lookup(self):%0A        %22%22%22Connects to google's secret finance API and parses the receiving json for the stock info.%22%22%22%0A%0A        # make the parser, and send the xml to be parsed%0A        result = requests.get(self.url)%0A        return result.json()%0A

Add bitcoin module