From 9b86fe2b6baeaad461dde54f86f8edca0336162a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 31 Dec 2017 23:29:06 +0000 Subject: [PATCH] Steam Improvements --- commands/search/steam.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/search/steam.js b/commands/search/steam.js index 19ef1e3f..98fdeefb 100644 --- a/commands/search/steam.js +++ b/commands/search/steam.js @@ -6,7 +6,7 @@ module.exports = class SteamCommand extends Command { constructor(client) { super(client, { name: 'steam', - aliases: ['steam-game'], + aliases: ['steam-game', 'game', 'video-game'], group: 'search', memberName: 'steam', description: 'Searches Steam for your query.', @@ -36,9 +36,9 @@ module.exports = class SteamCommand extends Command { .get('https://store.steampowered.com/api/appdetails') .query({ appids: id }); const { data } = body[id.toString()]; - const current = data.price_overview ? data.price_overview.final / 100 : 0; - const original = data.price_overview ? data.price_overview.initial / 100 : 0; - const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`; + const current = data.price_overview ? `$${data.price_overview.final / 100}` : 'Free'; + const original = data.price_overview ? `$${data.price_overview.initial / 100}` : 'Free'; + const price = current === original ? current : `~~${original}~~ ${current}`; const platforms = []; if (data.platforms) { if (data.platforms.windows) platforms.push('Windows'); diff --git a/package.json b/package.json index ea6496f6..b2c5da28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "60.2.1", + "version": "60.2.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {