changed twitter bearer token to avoid rate limits

This commit is contained in:
wukko 2022-10-03 21:55:58 +06:00
parent af1fc24b4d
commit 94b527afe1

View file

@ -1,10 +1,12 @@
import got from "got"; import got from "got";
import loc from "../../localization/manager.js"; import loc from "../../localization/manager.js";
import { genericUserAgent } from "../config.js";
export default async function(obj) { export default async function(obj) {
try { try {
let _headers = { let _headers = {
"Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAIK1zgAAAAAA2tUWuhGZ2JceoId5GwYWU5GspY4%3DUq7gzFoCZs1QfwGoVdvSac3IniczZEYXIcDyumCauIXpcAPorE", "User-Agent": genericUserAgent,
"Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw",
"Host": "api.twitter.com", "Host": "api.twitter.com",
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": 0 "Content-Length": 0