allquixotic/SO-ChatBot — pull request #1 by patricknc4pk (2013-10-12 01:06:45+00:00)
Title: Fix for the /stat issue

Fixed (at least for the Big Three sites) the issue with /stat not working. The following process is used instead of the old regex:

1. grab the `#siterooms` element's href; the `&host=site.com` bit is the target site
2. process it with a regex to get the target site without the rest of the link

The SE API doesn't seem to care whether the site parameter is `site` or `site.com`, so for now no stripping of the .com is needed.