Skip to content

Instantly share code, notes, and snippets.

View zfbx's full-sized avatar
⌨️
Programming Something

Tony zfbx

⌨️
Programming Something
View GitHub Profile
@zfbx
zfbx / MALProfile.js
Last active October 16, 2017 10:24
nodejs module for interfacing with MyAnimeList profile and my discord bot
const got = require('got');
const parseString = require('xml2js').parseString;
/**
* @typedef {Object} profile
* @property {string} search - The string used to search
* @property {string} id - User ID
* @property {string} name - username in proper camelCase (potentially same as search)
* @property {string} days - Total number of days watching
* @property {string} watching - Number of shows watching
@zfbx
zfbx / SteamProfile.js
Last active October 16, 2017 10:23
simple nodejs module for handling basic steam profile information for my discord bot.
const got = require('got');
const parseString = require('xml2js').parseString;
/**
* @typedef {Object} profile
* @property {string} search - The string used to search
* @property {string} id - User's SteamID64
* @property {string} url - User search url
* @property {string} privacy - User's Privacy settings ["public", "private", "friendsonly"]
* @property {string} picturesmall - Small profile picture