mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Bigger Twitter User Images
This commit is contained in:
@@ -151,7 +151,7 @@ module.exports = class TweetCommand extends Command {
|
||||
.get('https://api.twitter.com/1.1/users/show.json')
|
||||
.set({ Authorization: `Bearer ${this.token}` })
|
||||
.query({ screen_name: user });
|
||||
const avatarRes = await request.get(body.profile_image_url_https);
|
||||
const avatarRes = await request.get(body.profile_image_url_https.replace('_normal', '_bigger'));
|
||||
return {
|
||||
screenName: body.screen_name,
|
||||
name: body.name,
|
||||
|
||||
@@ -52,7 +52,7 @@ module.exports = class TwitterCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x55ADEE)
|
||||
.setAuthor('Twitter', 'https://i.imgur.com/QnfcO7y.png', 'https://twitter.com/')
|
||||
.setThumbnail(body.profile_image_url_https)
|
||||
.setThumbnail(body.profile_image_url_https.replace('_normal', ''))
|
||||
.setURL(`https://twitter.com/${body.screen_name}`)
|
||||
.setTitle(`${body.name} (@${body.screen_name})`)
|
||||
.setDescription(body.description)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "114.30.4",
|
||||
"version": "114.30.5",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user