up random pictures in osm poster
This commit is contained in:
parent
5c7d22d2ff
commit
0e9201c24e
@ -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}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user