![]() |
CDBot - The Chief Delphi "New Thread" Bot on ##FRC
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 [url] - pings [url] and outputs the response code and whether or not the ping was successful. There are a few others, though. You can look at the source for the rest of the commands: https://github.com/pimathbrainiac/CDPostBot EDIT: It didn't detect this post. It is a work in progress, after all :/ |
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
Quote:
|
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
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.
|
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
Quote:
|
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
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? |
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
Quote:
Code:
curl --header "X-Tba-App-Id:foo:baz:baz" http://www.thebluealliance.com/api/v2/events/2014 |
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
I forgot. Thanks for that! I added it as a URL param.
Also thanks for the file link. That should come in handy! |
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
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).
|
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC
It's been a while since I've posted here.
I have added a .help command, as well as some code for a very nice surprise once the competitions start :D |
| All times are GMT -5. The time now is 06:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi