For those of you who frequent ##FRC, I made a bot for you that scans the RSS feed and alerts the channel when there is a new thread. It also has a few other functions (some useful, some not). Here’s a list of them:
.google [search] - Googles [search] and outputs the link and the title
.test - outputs “test received”
.ping - pings and outputs the response code and whether or not the ping was successful.
Okay, so it’s not instantaneous. It must be due to the RSS feed not updating instantaneously. Good to know. Thanks for the notice. Next function will be match scores, synced with TBA, if that’ possible.
It’s very much possible. TBA has an API that you can poll for changes. Additionally, if I get the time in the coming weeks, I’m going to work on adding webhook functionality, which will make it even easier.
Thanks. I saw the API and am working on handing the json right now. I will also add lookup commands for past matches and events. I’ll post an update here when it is done.
EDIT: It appears that there is something wrong with the API, or the way it works. When I use this url in chrome, I get the response data. When I use the same URL In Java, I get error code 400. Any ideas?
Some major improvements have been made recently. I’m working on tba lookups right now (with the last score of an event, some event data, etc. already done). I also added a .cdsearch function so you can search CD from IRC. I’ll document everything once this is finished. For now, if you want to check things, you should go look at my source code on GitHub (and star it, while you’re at it).