2020-04-08 19:44:55 +00:00
|
|
|
exports.conf = {
|
2020-04-12 09:15:31 +00:00
|
|
|
enabled: true,
|
|
|
|
guildOnly: false,
|
|
|
|
aliases: ['enlarge'],
|
|
|
|
permLevel: 'User',
|
|
|
|
requiredPerms: []
|
|
|
|
}
|
|
|
|
|
2020-04-08 19:44:55 +00:00
|
|
|
exports.help = {
|
2020-04-12 09:15:31 +00:00
|
|
|
name: 'emoji',
|
|
|
|
category: 'Utility',
|
2020-04-12 09:24:14 +00:00
|
|
|
description: 'Enlarges a custom emoji (cannot be used to enlarge normal emojis)',
|
2020-04-12 09:15:31 +00:00
|
|
|
usage: 'emoji [emoji]',
|
|
|
|
parameters: '`[emoji] - Custom emoji you want to enlarge'
|
|
|
|
}
|
2020-04-08 19:44:55 +00:00
|
|
|
|
|
|
|
exports.run = async (client, message, args) => {
|
2020-04-12 09:15:31 +00:00
|
|
|
if (!args[0]) {
|
2020-04-13 09:29:47 +00:00
|
|
|
return client.userError(message, exports, 'Missing argument, the `emoji` argument is required!')
|
2020-04-12 09:15:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var ID
|
|
|
|
var format = '.png'
|
|
|
|
var string = args[0].replace(/\D/g, '')
|
|
|
|
|
|
|
|
if (args[0].charAt(1) === 'a' && args[0].charAt(2) === ':') {
|
|
|
|
format = '.gif'
|
|
|
|
};
|
|
|
|
|
|
|
|
if (string.length > 18) {
|
|
|
|
ID = string.slice(string.length - 18)
|
|
|
|
} else {
|
|
|
|
ID = string
|
|
|
|
};
|
|
|
|
|
|
|
|
if (!ID) {
|
|
|
|
return message.channel.send('<:error:466995152976871434> This command only works with custom emojis, sorry ;~;')
|
|
|
|
}
|
|
|
|
|
|
|
|
message.channel.send('https://cdn.discordapp.com/emojis/' + ID + format)
|
|
|
|
}
|