wispr-api
v0.1.6
Published
Routine module designed for wispr instagram bot. Uses supabase and instagram-private-api.
Downloads
14
Readme
wispr-api
Description
Routine module designed for wispr Instagram bot. Uses supabase and instagram-private-api.
Wispr Routine
Populate all the available images from storage and published images database.
Filter out all elements found in both lists, pick one unpublished image.
Post this image to Insta feed+story, write filename to database.
Done.
Installation
npm install wispr-api
Requirements
- Instagram username and password
- Supabase project URL and key
- A table containing at least id and name columns
- A bucket containing all the PNG pictures to post
Environment Variables
IG_USER
: Instagram UsernameIG_PASS
: Instagram PasswordSUPA_URL
: Supabase Project URLSUPA_KEY
: Supabase Key
Usage
First, import the module:
import wispr from 'wispr-api';
Create a config object and run the wispr function:
const supabaseConfig = {
table: "wispr_published",
column: "name",
bucket: "wispr-seasonOne",
};
wispr(supabaseConfig);