mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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) {
|
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 {
|
try {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('https://api.twitter.com/1.1/users/show.json')
|
.get('https://api.twitter.com/1.1/users/show.json')
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "125.0.0",
|
"version": "125.0.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user