-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
22 lines (21 loc) · 1.26 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* eslint-disable @typescript-eslint/no-explicit-any */
//
// ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
// ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
// ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
// ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
// ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
// ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
//
import TwitterApi from "twitter-api-v2";
import dotenv from "dotenv";
dotenv.config();
export const T = new TwitterApi({
appKey: `${process.env.API_KEY}`,
appSecret: `${process.env.API_SECRET}`,
// Following access tokens are not required if you are
// at part 1 of user-auth process (ask for a request token)
// or if you want a app-only client (see below)
accessToken: `${process.env.ACCESS_TOKEN}`,
accessSecret: `${process.env.ACCESS_SECRET}`,
});