mirror of
https://github.com/RGBCube/TwitterDiscordWebhook
synced 2025-07-29 22:17:44 +00:00
Less {}
This commit is contained in:
parent
8d35508d78
commit
edc9bd494d
1 changed files with 5 additions and 5 deletions
10
main.js
10
main.js
|
@ -15,12 +15,12 @@ const tClient = new Twitter({
|
||||||
});
|
});
|
||||||
|
|
||||||
tClient.get("account/verify_credentials", { skip_status: true })
|
tClient.get("account/verify_credentials", { skip_status: true })
|
||||||
.catch(err => {
|
.catch(err =>
|
||||||
console.log(`Unable to login due to the following error:\n${err}`)
|
console.log(`Unable to login due to the following error:\n${err}`)
|
||||||
})
|
)
|
||||||
.then(res => {
|
.then(res =>
|
||||||
console.log(`Logged in as '${res.data.name}'!`);
|
console.log(`Logged in as '${res.data.name}'!`)
|
||||||
});
|
);
|
||||||
|
|
||||||
let stream = tClient.stream("statuses/filter", { follow: config.user_id });
|
let stream = tClient.stream("statuses/filter", { follow: config.user_id });
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue