mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Allow donald trump fake tweets after twitter ban
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -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')
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "125.0.0",
|
||||
"version": "125.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user