fix domain env
This commit is contained in:
@ -18,7 +18,7 @@ exports.run = (client, message, args, level) => { // eslint-disable-line no-unus
|
||||
|
||||
|
||||
// Setting up our Request, using getUserByName method
|
||||
var Request = http.get('https://board.grwh.work/jsonrpc.php').headers({ Accept: 'application/json', 'Content-Type': 'application/json' }).send({ "jsonrpc": "2.0", "method": "getUserByName", "id": 0, "params": { "username": username[0] } });
|
||||
var Request = http.get('https://' + process.env.ROOT_DOMAIN + '/jsonrpc.php').headers({ Accept: 'application/json', 'Content-Type': 'application/json' }).send({ "jsonrpc": "2.0", "method": "getUserByName", "id": 0, "params": { "username": username[0] } });
|
||||
|
||||
// Begin the request and send authenication using the jsonrpc2.0 protocol.
|
||||
Request.auth({
|
||||
|
Reference in New Issue
Block a user