1
Fork 0
mirror of https://github.com/RGBCube/TwitterDiscordWebhook synced 2025-07-29 05: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 }) 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 });