Added function to remove an authenticated account to authmanager.js.

This commit is contained in:
Daniel Scalzi
2018-04-14 22:43:58 -04:00
parent 631c3cd6d4
commit 5475ac0c69
3 changed files with 62 additions and 3 deletions

View File

@@ -1,5 +1,14 @@
/**
* Mojang
*
* This module serves as a minimal wrapper for Mojang's REST api.
*
* @module mojang
*/
// Requirements
const request = require('request')
// Constants
const minecraftAgent = {
name: 'Minecraft',
version: 1
@@ -38,6 +47,8 @@ const statuses = [
}
]
// Functions
/**
* Converts a Mojang status color to a hex value. Valid statuses
* are 'green', 'yellow', 'red', and 'grey'. Grey is a custom status