For use with bots such as Nightbot which allow customapi links as commands.
(Ensure you have babel-cli
installed)
$ git clone https://github.com/nicholastay/get-osu-requester.git && cd get-osu-requester
$ cp config.json.template config.json
$ vi config.json # or any other text editor
$ npm install
$ babel-node index.es6.js
Nightbot custom command example:
!r - $(customapi http://server.tld/api/osu_request?user=Nexerq&requester=$(user)&map=$(1))
With 'Nexerq' as the osu! username that is taking the requests
Compile for production:
$ npm run compile # Ensure you have babel installed
$ npm start # To start