up random pictures in osm poster
This commit is contained in:
parent
5c7d22d2ff
commit
0e9201c24e
@ -48,7 +48,7 @@ function postLink() {
|
|||||||
let configPost = {
|
let configPost = {
|
||||||
author: 'qzine',
|
author: 'qzine',
|
||||||
// image: 'qzine_default.jpg',
|
// 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})
|
message: `# [ !Qzine - ${postObject.title.rendered}](${postObject.link})
|
||||||
|
|
||||||
* ${postObject.date} - ${postObject.link}
|
* ${postObject.date} - ${postObject.link}
|
||||||
|
@ -7,7 +7,7 @@ import rp from "request-promise";
|
|||||||
import $ from "cheerio";
|
import $ from "cheerio";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import {randomIntFromInterval, sendPostMastodon} from "./utils.mjs";
|
import sendPostMastodon, {randomIntFromInterval} from './utils.mjs'
|
||||||
|
|
||||||
const __dirname = path.resolve();
|
const __dirname = path.resolve();
|
||||||
|
|
||||||
@ -284,7 +284,7 @@ function sendMessageWikiTagOfTheDay(message) {
|
|||||||
|
|
||||||
let configPost = {
|
let configPost = {
|
||||||
author: 'curator',
|
author: 'curator',
|
||||||
image: 'osm_default.jpg',
|
image: 'osm_post_' + randomIntFromInterval(1 , 5) + '.jpg',
|
||||||
message,
|
message,
|
||||||
// reallySendPost: true,
|
// reallySendPost: true,
|
||||||
reallySendPost: reallySendPost,
|
reallySendPost: reallySendPost,
|
||||||
|
Loading…
Reference in New Issue
Block a user