From 94b527afe1233f4dd77309dfa1fba85c60554ad7 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 3 Oct 2022 21:55:58 +0600 Subject: [PATCH] changed twitter bearer token to avoid rate limits --- src/modules/services/twitter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/services/twitter.js b/src/modules/services/twitter.js index a0a9741b..89bf4e90 100644 --- a/src/modules/services/twitter.js +++ b/src/modules/services/twitter.js @@ -1,10 +1,12 @@ import got from "got"; import loc from "../../localization/manager.js"; +import { genericUserAgent } from "../config.js"; export default async function(obj) { try { let _headers = { - "Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAIK1zgAAAAAA2tUWuhGZ2JceoId5GwYWU5GspY4%3DUq7gzFoCZs1QfwGoVdvSac3IniczZEYXIcDyumCauIXpcAPorE", + "User-Agent": genericUserAgent, + "Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw", "Host": "api.twitter.com", "Content-Type": "application/json", "Content-Length": 0