Skip to content

Instantly share code, notes, and snippets.

View Arikatsu's full-sized avatar
🚩
space addict

Scald Arikatsu

🚩
space addict
View GitHub Profile
@Arikatsu
Arikatsu / tweet.js
Created August 4, 2022 03:31
A simple and Easy way to use the Twitter API Version 2 to send Tweets with a bot on Twitter.
/**
* Install `twitter-api-v2` using `npm install twitter-api-v2`.
* You will also need your client API key, API secret key, access token, and access token secret.
* You can find guides online on how to get those but its basically just getting them from the Twitter Developer website inside your app dashboard.
*/
const { TwitterApi } = require("twitter-api-v2")
/**
* @param {string} appKey Your API key.