mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +02:00
Fix Steam
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports = class SteamCommand extends Command {
|
||||
const { body } = await request
|
||||
.get('https://store.steampowered.com/api/appdetails')
|
||||
.query({ appids: id });
|
||||
const { data } = body[id.toString()];
|
||||
const { data } = body[id.toString()] || body[id];
|
||||
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}`;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "84.4.1",
|
||||
"version": "84.4.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user