up random pictures in osm poster

This commit is contained in:
Tykayn 2022-12-07 18:00:08 +01:00 committed by tykayn
parent 5c7d22d2ff
commit 0e9201c24e
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ function postLink() {
let configPost = {
author: 'qzine',
// image: 'qzine_default.jpg',
image: 'qzine_post_' + randomIntFromInterval(1 , 3) + '.jpg',
image: 'qzine_post_' + randomIntFromInterval(1 , 4) + '.jpg',
message: `# [ !Qzine - ${postObject.title.rendered}](${postObject.link})
* ${postObject.date} - ${postObject.link}

View File

@ -7,7 +7,7 @@ import rp from "request-promise";
import $ from "cheerio";
import fs from "fs";
import path from 'path';
import {randomIntFromInterval, sendPostMastodon} from "./utils.mjs";
import sendPostMastodon, {randomIntFromInterval} from './utils.mjs'
const __dirname = path.resolve();
@ -284,7 +284,7 @@ function sendMessageWikiTagOfTheDay(message) {
let configPost = {
author: 'curator',
image: 'osm_default.jpg',
image: 'osm_post_' + randomIntFromInterval(1 , 5) + '.jpg',
message,
// reallySendPost: true,
reallySendPost: reallySendPost,