wip curation follow friday

This commit is contained in:
Tykayn 2023-07-04 16:46:19 +02:00 committed by tykayn
parent b5b8696c91
commit a25bb58354

View File

@ -0,0 +1,39 @@
import fs from "fs";
import path from 'path';
import {getRandomElementOfArray, listFilesOfFolder} from '../libs/utils.mjs'
import Masto from "mastodon";
const __dirname = path.resolve();
// choisir un type de publication au hasard dans les dossiers "picture"
console.log(typeOfFolder)
const folderMemeUnpublished = 'assets/pictures/meme/not_published/'
const folderMemePublished = 'assets/pictures/meme/published/'
const list_unpublished_images = listFilesOfFolder(folderMemeUnpublished)
const reallySendPost = false;
// const reallySendPost = true;
let allFollows = {
}
function selectXRandomElementsFromFollowers(count){
return []
}
function getUserInfo(userData){
return [userHandle, userReadableName, biography]
}
function postMessage(){
// get users
// build message
// send it
// success
}