View cu-rest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module to access Camelot Unchained's REST API | |
// Originally written by Mehuge (https://www.github.com/Mehuge) | |
var Promise = require('./basic-promise.js'); | |
var util = require('util'); | |
var request = require('request'); | |
var servers = []; | |
function restAPI(name) { |