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 }