-
Notifications
You must be signed in to change notification settings - Fork 308
Create a hubot script package #1563
Comments
Fun idea! :-) Does the Gittip tips.json API give you what you need for this? |
Looks like it could do the trick @whit537! Thanks for a point in the right direction :) |
Here's what we're using for my NodeJS based bot if it helps you out any: |
Thanks @clone1018! |
Relevant thoughts potential usage of top_givers api call: |
Super-messy, but it's doing to do the trick for us. I'll wrap it up into its own hubot script package soon :) |
I'm hitting this issue with case-sensitivity. Anyone know a good way around it, or should I open up an issue to accept routes in the API with lowercase usernames? |
Open an issue. Case sensitivity is silly. ;-) |
Usernames are stored case sensitive and so returned with user preferred case. On input gittip should accept any case and normalize it. If it does not, please open an issue. BTW: I have no idea what I am looking at with the evernote screenshot. |
@seanlinsley redirects in the browser are one thing, but this returns a 302:
I suppose that following redirects could be handled in a client lib, but seems uneccessary complexity. fwiw github is caps insensitive: @zwn sorry, didn't give context given the issue context, but it's our chat bot, and we build the POSTed endpoint directly from the user input :) @balupton will do 👍 |
Hrm, I think we should still redirect the user to the proper URL. Serving actual results on a url that's not 1:1 with the database is :( |
@clone1018 definitely, the proper URL should always be redirected to. I think the argument here though, is that by making the API case insensitive, like the way GitHub does, then both |
I'm genuinely curious, why is that? It would strike me as a pattern that only contributes rigidity. I haven't noticed that pattern in any respected services that I use. Sorry, I'm not trying to be confrontational, but I am curious :) A singular example: https://github.com/PatCon |
I'm not sure I have an actual argument for or against, but it feels wrong. The only potential reason I can think of would be if a system used "username" as a unique, case-sensitive ID but that would be the failure of that system. |
Here was a relevant convo in rails. People raised the same thought about urls being intentionally case-sensitive, but supposing there are cases where it isn't wanted, the solution there was to just tackle it in the router middleware and not bother redirecting: http://stackoverflow.com/questions/2291907/rails-routes-how-to-make-them-case-insensitive EDIT: Rats. Sorry, this convo should be in the other thread. Moving there. |
Stubbed out a repo so I could add some issues without creating noise in this issue: I'll close this issue when there's a full release on npmjs |
Done and done. Cheers! |
Rockin. Can do, sir. And I understanding correctly that it's a new header? |
I was thinking it could go under "API Implementations"? |
Thanks. Assuming the "clients" comment is safe to ignore, but def let me know if I misunderstood. |
@patcon Ah, yes, sorry. That was a mistake on my part, I mean "API Implementations." :-) |
DISCLAIMER: I am posting this issue on my own behalf, and do not reflect my company's final position on this.
EDIT: My company is now actively using this script: https://www.gittip.com/myplanetdigital
Currently working at a company (@myplanetdigital), that is trying to be supportive of the open source communities that help us do what we do. I have a personal goal of helping to integrate gittip into our culture.
Thinking it would be awesome to create a hubot script that allows anyone in the privileged company chat to contribute to projects/users from the company "pot".
Here are my thought on the rough spec. Would appreciate feedback :)
hubot gittip list
: show all the ongoing tipshubot gittip add
: add a new tiphubot gittip remove
: remove an existing tiphubot gittip edit
: adjust an existing tiphubot gittip [total]
: get total dollar count of weekly givingAs a precaution, the weekly limit of the total gifts, should probably be set via an env var like
HUBOT_GITTIP_QUOTA
.Thoughts? Thinking about MVP right now that solves what I understand to be our needs, and then maybe some nice-to-haves:
cc: @balupton @RobLoach @yrassoulli @emarchak @arvinsingla
The text was updated successfully, but these errors were encountered: