mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
A few extra
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const snekfetch = require('snekfetch');
|
||||
const { cleanHTML } = require('../../structures/Util');
|
||||
const { shorten, cleanHTML } = require('../../structures/Util');
|
||||
|
||||
module.exports = class SteamCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -47,7 +47,7 @@ module.exports = class SteamCommand extends Command {
|
||||
.setColor(0x101D2F)
|
||||
.setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png')
|
||||
.setTitle(data.name)
|
||||
.setDescription(cleanHTML(data.short_description))
|
||||
.setDescription(shorten(cleanHTML(data.short_description)))
|
||||
.setURL(`http://store.steampowered.com/app/${data.steam_appid}`)
|
||||
.setImage(data.header_image)
|
||||
.addField('❯ Price',
|
||||
|
||||
+2
-2
@@ -69,8 +69,8 @@ class Util {
|
||||
.replace(/™/g, '™')
|
||||
.replace(/®/g, '®')
|
||||
.replace(/(<\/?strong>|<\/?b>)/g, '**')
|
||||
.replace(/<br>/g, '\n\n')
|
||||
.replace(/<\/?i>/g, '*');
|
||||
.replace(/<br>/g, '\n')
|
||||
.replace(/(<\/?i>|<\/?em>)/g, '*');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user