mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Steam Improvements
This commit is contained in:
@@ -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');
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "60.2.1",
|
||||
"version": "60.2.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user