node-challonge
node-challonge copied to clipboard
A node.js wrapper for the challonge.com API
To create a tournament i send the tie breaks param in the same mode that the api returns the value. like this. The tournament is a round-robin format: ``` tie_breaks...
Does this wrapper support the async/await pattern? I tried it, but it doesn't seem like so. I ended up creating a small layer around it to solve it, like this:...
Does this challonge wrapper wrap all the endpoints of the Challonge API? Because I noticed the `check-in` endpoints for participants are missing from the documentation.
``` week_1 | undefined:1 week_1 | [{"match":{"id":171308445,"tournament_id":7328849,"state":"complete","player1_id":103875561,"player2_id":103875782,"player1_prereq_match_id":null,"player2_prereq_match_id":null,"player1_is_prereq_match_loser":false,"player2_is_prereq_match_loser":false,"winner_id":103875561,"loser_id":103875782,"started_at":"2019-08-17T18:57:24.035+08:00","created_at":"2019-08-17T18:57:23.820+08:00","updated_at":"2019-08-17T19:12:01.592+08:00","identifier":"A","has_attachment":false,"round":1,"player1_votes":null,"player2_votes":null,"group_id":null,"attachment_count":null,"scheduled_time":null,"location":null,"underway_at":null,"optional":false,"rushb_id":null,"completed_at":"2019-08-17T19:12:01.611+08:00","suggested_play_order":1,"forfeited":null,"prerequisite_match_ids_csv":"","scores_csv":"2-0"}},{"match":{"id":171308446,"tournament_id":7328849,"state":"complete","player1_id":103875595,"player2_id":103875597,"player1_prereq_match_id":null,"player2_prereq_match_id":null,"player1_is_prereq_match_loser":false," week_1 | week_1 | SyntaxError: Unexpected end of JSON input week_1 | at JSON.parse () week_1 | at IncomingMessage. (/challonge/lib/api/client.js:130:20) week_1 | at...
In a tournament, we use the name format `12345678+YOUR_NAME`, like `11111111+Nanahira` for example, When uploading the participants with `challonge.participants.create`, all the `+` characters are gone, making the name `11111111 Nanahira`...
Our project, https://github.com/moecube/srvpro, attempting to automatically host YGOPro (https://github.com/Fluorohydride/ygopro) tournaments, used your API by this module to automatically seed and seat players into servers and post the score after the...
http://api.challonge.com/v1/documents/participants/check_in http://api.challonge.com/v1/documents/participants/undo_check_in http://api.challonge.com/v1/documents/participants/bulk_add
Or at least allowing callback to be passed as the second argument so that promisfy libraries will work nicely. This would have to be in a major version bump unless...