A few extra

This commit is contained in:
dragonfire535
2017-10-07 12:45:44 -04:00
parent d9ae0ff55d
commit f0630cb858
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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, '*');
}
}