|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: [TBA]: TBA to Slack integration
Quote:
example |
|
#2
|
||||
|
||||
|
Re: [TBA]: TBA to Slack integration
That's a wonderful library for polling TBA with GET requests. Must be a really powerful tool to run in a browser. What I was thinking of was a library to receive and parse POST requests from TBA so then the data could be recomposed into another POST and sent to Slack's webhook.
|
|
#3
|
|||||
|
|||||
|
Re: [TBA]: TBA to Slack integration
Quote:
Quote:
TBA ---(webhook)---> GAE (process, format) -----(Slack Message)---> Slack |
|
#4
|
||||
|
||||
|
Re: [TBA]: TBA to Slack integration
Quote:
|
|
#5
|
||||
|
||||
|
Re: [TBA]: TBA to Slack integration
Update:
I finally succeeded connecting the two webhooks: from TBA to Slack. Yay! It's a -nasty hack- convoluted Python script running on Google Apps. So far it is very simplistic, basically just stripping JSON formatting for a couple of message types. I can't open-source it yet because all the URLs and secrets are hard coded into the script. I'll see how it works this upcoming weekend then will try to rewrite it in a more open-source-able form (after I'm done with my taxes as well). Stay tuned. |
|
#6
|
||||
|
||||
|
Re: [TBA]: TBA to Slack integration
Alright. Sorry for the delay, our team 3130 happened to win its second regional and had to go to the world champs. So all our resources were taken by the preps. Now as the competitions season is over I managed to scratch some time to publish our code onto GitHub. Here it is.
https://github.com/team3130/TBA-push-to-Slack/ That's a very basic example we tested in our Slack team. So far only "Upcoming Match" and "Match Score" notifications are implemented. And even those are very basic. I'd love to hear suggestions how to make the project more collaborative so others could contribute. For the starters the major conflict I already can see would be that if this project grows further everyone will want their own formatting for messages. For the meantime I have no idea how to handle that. Please chime in. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|