codeforamerica / glossary-bot

A Glossary bot for Slack
MIT License
116 stars 45 forks source link

Add support for dynamic information in definitions #22

Open tmaybe opened 9 years ago

tmaybe commented 9 years ago

It'd be cool to have URLs formatted in a certain way that told Gloss Bot to pull information from that URL and display it in place. For example I could set a definition like this:

/gloss FPL = Federal Poverty Level (currently $http://c4a.me/autofpl)

The $ in front of that URL would tell Gloss Bot to pull whatever text it found at that URL and display it as part of the definition:

FPL: Federal Poverty Level (currently $7,610 plus $4,160 per person in a family/household in the 48 contiguous states and DC; $9,520 plus $5,200 per person in Alaska; $8,770 plus $4,780 per person in Hawaii)