mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Allow donald trump fake tweets after twitter ban
This commit is contained in:
@@ -165,6 +165,14 @@ module.exports = class TweetCommand extends Command {
|
||||
}
|
||||
|
||||
async fetchUser(msg, user) {
|
||||
if (user.toLowerCase() === 'realdonaldtrump') {
|
||||
return {
|
||||
screenName: 'realDonaldTrump',
|
||||
name: 'Donald J. Trump',
|
||||
avatar: path.join(__dirname, '..', '..', 'assets', 'images', 'tweet', 'realdonaldtrump.jpg'),
|
||||
verified: true
|
||||
};
|
||||
}
|
||||
try {
|
||||
const { body } = await request
|
||||
.get('https://api.twitter.com/1.1/users/show.json')
|
||||
|
||||
Reference in New Issue
Block a user