PlaguPoster/sample/config.json

98 lines
2.5 KiB
JSON
Raw Permalink Normal View History

2022-09-09 16:59:49 +00:00
{
"database": {
2023-11-02 16:06:48 +00:00
"url": "jdbc:postgresql://postgres:5432/test",
2023-10-31 14:31:47 +00:00
"username": "test",
"password": "test",
2022-09-09 16:59:49 +00:00
"driver": "org.postgresql.Driver"
},
2023-10-31 14:31:47 +00:00
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
2022-09-09 16:59:49 +00:00
"plugins": [
"dev.inmo.plaguposter.posts.Plugin",
"dev.inmo.plaguposter.posts.registrar.Plugin",
"dev.inmo.plaguposter.ratings.Plugin",
"dev.inmo.plaguposter.ratings.source.Plugin",
"dev.inmo.plaguposter.ratings.selector.Plugin",
"dev.inmo.plaguposter.ratings.gc.Plugin",
2023-10-31 14:31:47 +00:00
"dev.inmo.plaguposter.triggers.selector_with_timer.Plugin",
2022-10-11 05:38:50 +00:00
"dev.inmo.plagubot.plugins.inline.queries.Plugin",
2023-10-31 14:31:47 +00:00
"dev.inmo.plaguposter.triggers.command.Plugin",
"dev.inmo.plaguposter.posts.panel.Plugin",
"dev.inmo.plaguposter.common.CommonPlugin",
"dev.inmo.plaguposter.triggers.timer.Plugin",
"dev.inmo.plaguposter.triggers.timer.disablers.ratings.Plugin",
2023-11-06 15:27:43 +00:00
"dev.inmo.plaguposter.triggers.timer.disablers.autoposts.Plugin",
"dev.inmo.plaguposter.posts.gc.Plugin"
2022-09-09 16:59:49 +00:00
],
"posts": {
"chats": {
2023-10-31 14:31:47 +00:00
"targetChat": 12345678,
"cacheChat": 12345678,
"sourceChat": 12345678,
"targetChats": [12345678],
"_note": "You must set targetChat or targetChats with at least one object"
}
2022-09-09 16:59:49 +00:00
},
"ratingsPolls": {
"variants": {
2023-10-31 14:31:47 +00:00
"Cool": 2,
"Ok": 1,
"Not ok": -1,
"Inappropriate": -2,
"Results": 0
2022-09-09 16:59:49 +00:00
},
"autoAttach": true,
2023-10-31 14:31:47 +00:00
"ratingOfferText": "What do you think about it?"
2022-09-09 16:59:49 +00:00
},
"selector": {
"items": [
{
"time": {
"from": "00:00",
2023-10-31 14:31:47 +00:00
"to": "23:59"
2022-09-09 16:59:49 +00:00
},
"rating": {
2023-11-12 15:57:21 +00:00
"prefer": "max",
"uniqueCount": 1
2022-09-09 16:59:49 +00:00
}
},
{
"time": {
2023-10-31 14:31:47 +00:00
"from": "23:59",
"to": "00:00"
2022-09-09 16:59:49 +00:00
},
"rating": {
2023-11-12 15:57:21 +00:00
"prefer": "max",
"uniqueCount": 1
2022-09-09 16:59:49 +00:00
}
}
]
},
"timer_trigger": {
2023-11-06 13:18:19 +00:00
"krontab": "0 30 2/4 * *",
"retryOnPostFailureTimes": 0,
"_note": "retryOnPostFailureTimes will retry to publish one or several posts if posting has been failed"
2023-10-31 14:31:47 +00:00
},
"panel": {
"textPrefix": "Post management:",
"buttonsPerRow": 2,
"parseMode": "MarkdownV2",
"deleteButtonText": "Delete"
},
"publish_command": {
"panelButtonText": "Publish"
2022-09-09 16:59:49 +00:00
},
"gc": {
"autoclear": {
"rating": -1,
"autoClearKrontab": "0 0 0 * *",
"skipPostAge": 86400
},
2023-10-31 14:31:47 +00:00
"immediateDrop": -6
2023-11-06 15:27:43 +00:00
},
"messagesChecker": {
"krontab": "0 0 0 * *",
"throttlingMillis": 1000,
"doFullCheck": false
2022-09-09 16:59:49 +00:00
}
}