Go to Post Adult coaches are the "rock stars" of our program, and I know on Simbotics the kids really do look up to and aspire to be a great as these coaches. - Karthik [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-08-2014, 21:05
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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 :/
Reply With Quote
  #2   Spotlight this post!  
Unread 31-08-2014, 21:20
icecube45's Avatar
icecube45 icecube45 is offline
Drive|Programming|Captain
FRC #0114 (Eaglestrike)
Team Role: Driver
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Los Altos
Posts: 30
icecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the roughicecube45 is a jewel in the rough
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC

Quote:
Originally Posted by pimathbrainiac View Post
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 :/
It just detected it
Reply With Quote
  #3   Spotlight this post!  
Unread 01-09-2014, 12:47
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-09-2014, 15:13
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC

Quote:
Originally Posted by pimathbrainiac View Post
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.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #5   Spotlight this post!  
Unread 01-09-2014, 18:29
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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?

Last edited by pimathbrainiac : 01-09-2014 at 19:02.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-09-2014, 20:14
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: CDBot - The Chief Delphi "New Thread" Bot on ##FRC

Quote:
Originally Posted by pimathbrainiac View Post
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?
Are you supplying the proper "X-Tba-App-Id" header to identify your request? I can run the following command and get the proper response back.
Code:
curl --header "X-Tba-App-Id:foo:baz:baz" http://www.thebluealliance.com/api/v2/events/2014
If you need some help with using the API through java, take a look at this file in the TBA Android app - it should be a good starting point.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #7   Spotlight this post!  
Unread 01-09-2014, 21:32
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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!
Reply With Quote
  #8   Spotlight this post!  
Unread 12-09-2014, 06:28
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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).
Reply With Quote
  #9   Spotlight this post!  
Unread 16-12-2014, 17:13
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 15:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi