mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
More
This commit is contained in:
@@ -40,11 +40,9 @@ module.exports = class SteamCommand extends Command {
|
|||||||
const original = data.price_overview ? data.price_overview.initial / 100 : 0;
|
const original = data.price_overview ? data.price_overview.initial / 100 : 0;
|
||||||
const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`;
|
const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`;
|
||||||
const platforms = [];
|
const platforms = [];
|
||||||
if (data.platforms) {
|
if (data.platforms.windows) platforms.push('Windows');
|
||||||
if (data.platforms.windows) platforms.push('Windows');
|
if (data.platforms.mac) platforms.push('Mac');
|
||||||
if (data.platforms.mac) platforms.push('Mac');
|
if (data.platforms.linux) platforms.push('Linux');
|
||||||
if (data.platforms.linux) platforms.push('Linux');
|
|
||||||
}
|
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x101D2F)
|
.setColor(0x101D2F)
|
||||||
.setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png')
|
.setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png')
|
||||||
|
|||||||
+4
-1
@@ -67,7 +67,10 @@ class Util {
|
|||||||
.replace(/—/g, '—')
|
.replace(/—/g, '—')
|
||||||
.replace(/©/g, '©')
|
.replace(/©/g, '©')
|
||||||
.replace(/™/g, '™')
|
.replace(/™/g, '™')
|
||||||
.replace(/®/g, '®');
|
.replace(/®/g, '®')
|
||||||
|
.replace(/(<\/?strong>|<\/?b>)/g, '**')
|
||||||
|
.replace(/<br>/g, '\n\n')
|
||||||
|
.replace(/<\/?i>/g, '*');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user