mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Peak follower count
This commit is contained in:
@@ -167,7 +167,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
name: 'Donald J. Trump',
|
name: 'Donald J. Trump',
|
||||||
avatar: path.join(__dirname, '..', '..', 'assets', 'images', 'tweet', 'realdonaldtrump.jpg'),
|
avatar: path.join(__dirname, '..', '..', 'assets', 'images', 'tweet', 'realdonaldtrump.jpg'),
|
||||||
verified: true,
|
verified: true,
|
||||||
followers: 88776124
|
followers: 5000000
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -181,7 +181,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
name: body.name,
|
name: body.name,
|
||||||
avatar: avatarRes.body,
|
avatar: avatarRes.body,
|
||||||
verified: body.verified,
|
verified: body.verified,
|
||||||
followers: body.followers_count
|
followers: Math.min(body.followers_count, 5000000)
|
||||||
};
|
};
|
||||||
} catch {
|
} catch {
|
||||||
const avatarRes = await request.get(msg.author.displayAvatarURL({ format: 'png', size: 64 }));
|
const avatarRes = await request.get(msg.author.displayAvatarURL({ format: 'png', size: 64 }));
|
||||||
|
|||||||
Reference in New Issue
Block a user