mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-11-09 01:33:47 +00:00
98 lines
2.5 KiB
JSON
98 lines
2.5 KiB
JSON
{
|
|
"database": {
|
|
"url": "jdbc:postgresql://postgres:5432/test",
|
|
"username": "test",
|
|
"password": "test",
|
|
"driver": "org.postgresql.Driver"
|
|
},
|
|
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
|
|
"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",
|
|
"dev.inmo.plaguposter.triggers.selector_with_timer.Plugin",
|
|
"dev.inmo.plagubot.plugins.inline.queries.Plugin",
|
|
"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",
|
|
"dev.inmo.plaguposter.triggers.timer.disablers.autoposts.Plugin",
|
|
"dev.inmo.plaguposter.posts.gc.Plugin"
|
|
],
|
|
"posts": {
|
|
"chats": {
|
|
"targetChat": 12345678,
|
|
"cacheChat": 12345678,
|
|
"sourceChat": 12345678,
|
|
"targetChats": [12345678],
|
|
"_note": "You must set targetChat or targetChats with at least one object"
|
|
}
|
|
},
|
|
"ratingsPolls": {
|
|
"variants": {
|
|
"Cool": 2,
|
|
"Ok": 1,
|
|
"Not ok": -1,
|
|
"Inappropriate": -2,
|
|
"Results": 0
|
|
},
|
|
"autoAttach": true,
|
|
"ratingOfferText": "What do you think about it?"
|
|
},
|
|
"selector": {
|
|
"items": [
|
|
{
|
|
"time": {
|
|
"from": "00:00",
|
|
"to": "23:59"
|
|
},
|
|
"rating": {
|
|
"prefer": "max",
|
|
"uniqueCount": 1
|
|
}
|
|
},
|
|
{
|
|
"time": {
|
|
"from": "23:59",
|
|
"to": "00:00"
|
|
},
|
|
"rating": {
|
|
"prefer": "max",
|
|
"uniqueCount": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"timer_trigger": {
|
|
"krontab": "0 30 2/4 * *",
|
|
"retryOnPostFailureTimes": 0,
|
|
"_note": "retryOnPostFailureTimes will retry to publish one or several posts if posting has been failed"
|
|
},
|
|
"panel": {
|
|
"textPrefix": "Post management:",
|
|
"buttonsPerRow": 2,
|
|
"parseMode": "MarkdownV2",
|
|
"deleteButtonText": "Delete"
|
|
},
|
|
"publish_command": {
|
|
"panelButtonText": "Publish"
|
|
},
|
|
"gc": {
|
|
"autoclear": {
|
|
"rating": -1,
|
|
"autoClearKrontab": "0 0 0 * *",
|
|
"skipPostAge": 86400
|
|
},
|
|
"immediateDrop": -6
|
|
},
|
|
"messagesChecker": {
|
|
"krontab": "0 0 0 * *",
|
|
"throttlingMillis": 1000,
|
|
"doFullCheck": false
|
|
}
|
|
}
|