wip curation follow friday
This commit is contained in:
parent
b5b8696c91
commit
a25bb58354
39
helpers/wip/curation_following_recommendation.mjs
Normal file
39
helpers/wip/curation_following_recommendation.mjs
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user