diff --git a/commands/search/steam.js b/commands/search/steam.js index 8fe09489..5f814806 100644 --- a/commands/search/steam.js +++ b/commands/search/steam.js @@ -40,11 +40,9 @@ module.exports = class SteamCommand extends Command { const original = data.price_overview ? data.price_overview.initial / 100 : 0; const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`; const platforms = []; - if (data.platforms) { - if (data.platforms.windows) platforms.push('Windows'); - if (data.platforms.mac) platforms.push('Mac'); - if (data.platforms.linux) platforms.push('Linux'); - } + if (data.platforms.windows) platforms.push('Windows'); + if (data.platforms.mac) platforms.push('Mac'); + if (data.platforms.linux) platforms.push('Linux'); const embed = new MessageEmbed() .setColor(0x101D2F) .setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png') diff --git a/structures/Util.js b/structures/Util.js index efee40cb..425ade5b 100644 --- a/structures/Util.js +++ b/structures/Util.js @@ -67,7 +67,10 @@ class Util { .replace(/—/g, '—') .replace(/©/g, '©') .replace(/™/g, '™') - .replace(/®/g, '®'); + .replace(/®/g, '®') + .replace(/(<\/?strong>|<\/?b>)/g, '**') + .replace(/
/g, '\n\n') + .replace(/<\/?i>/g, '*'); } }