1
Fork 0
mirror of https://github.com/RGBCube/TwitterDiscordWebhook synced 2025-07-27 04:57:44 +00:00
This commit is contained in:
RGBCube 2023-01-15 22:57:19 +03:00 committed by GitHub
parent 8d35508d78
commit edc9bd494d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
main.js
View file

@ -15,12 +15,12 @@ const tClient = new Twitter({
});
tClient.get("account/verify_credentials", { skip_status: true })
.catch(err => {
.catch(err =>
console.log(`Unable to login due to the following error:\n${err}`)
})
.then(res => {
console.log(`Logged in as '${res.data.name}'!`);
});
)
.then(res =>
console.log(`Logged in as '${res.data.name}'!`)
);
let stream = tClient.stream("statuses/filter", { follow: config.user_id });