From 29d6d11d87de0338ecccf3ef3e1fc6ad9544ee27 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 15 Sep 2022 02:27:06 +0600 Subject: [PATCH] update sample config --- runner/config.json | 54 ++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/runner/config.json b/runner/config.json index 22676fb..93e4b88 100644 --- a/runner/config.json +++ b/runner/config.json @@ -13,19 +13,24 @@ "dev.inmo.plaguposter.ratings.source.Plugin", "dev.inmo.plaguposter.ratings.selector.Plugin", "dev.inmo.plaguposter.triggers.selector_with_timer.Plugin", - "dev.inmo.plaguposter.ratings.gc.Plugin", "dev.inmo.plaguposter.inlines.Plugin", - "dev.inmo.plaguposter.triggers.command.Plugin" + "dev.inmo.plaguposter.triggers.command.Plugin", + "dev.inmo.plaguposter.posts.panel.Plugin" ], "posts": { - "targetChat": 12345678, - "cacheChat": 12345678, - "sourceChat": 12345678 + "chats": { + "targetChat": 12345678, + "cacheChat": 12345678, + "sourceChat": 12345678 + } }, "ratingsPolls": { "variants": { - "Ok": 1, - "Not ok": -1 + "Круть": 2, + "Ок": 1, + "Не ок": -1, + "Совсем не ок": -2, + "Посмотреть результаты": 0 }, "autoAttach": true, "ratingOfferText": "What do you think about it?" @@ -35,33 +40,18 @@ { "time": { "from": "00:00", - "to": "00:00" + "to": "23:59" }, "rating": { - "min": 0.0, - "max": 1.0, - "prefer": "random" + "prefer": "max" } }, { "time": { - "from": "00:00", + "from": "23:59", "to": "00:00" }, "rating": { - "min": 0.0, - "max": 1.0, - "prefer": "min" - } - }, - { - "time": { - "from": "00:00", - "to": "00:00" - }, - "rating": { - "min": 0.0, - "max": 1.0, "prefer": "max" } } @@ -70,11 +60,13 @@ "timer_trigger": { "krontab": "0 30 2/4 * *" }, - "gc": { - "autoclear": { - "rating": -2, - "autoClearKrontab": "0 0 0 * *", - "skipPostAge": 86400 - } + "panel": { + "textPrefix": "Post management:", + "buttonsPerRow": 2, + "parseMode": "MarkdownV2", + "deleteButtonText": "Delete" + }, + "publish_command": { + "panelButtonText": "Publish" } }