PlaguPoster/runner/config.json

88 lines
2.2 KiB
JSON
Raw Normal View History

2022-08-19 18:52:31 +00:00
{
"database": {
2022-09-04 07:27:35 +00:00
"url": "jdbc:postgresql://127.0.0.1:8091/test",
"username": "test",
"password": "test",
"driver": "org.postgresql.Driver"
2022-08-19 18:52:31 +00:00
},
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
"plugins": [
"dev.inmo.plaguposter.posts.Plugin",
2022-09-04 07:27:35 +00:00
"dev.inmo.plaguposter.posts.registrar.Plugin",
"dev.inmo.plaguposter.ratings.Plugin",
2022-09-06 18:23:14 +00:00
"dev.inmo.plaguposter.ratings.source.Plugin",
"dev.inmo.plaguposter.ratings.selector.Plugin",
2023-05-10 05:05:14 +00:00
"dev.inmo.plaguposter.ratings.gc.Plugin",
2022-09-09 11:27:11 +00:00
"dev.inmo.plaguposter.triggers.selector_with_timer.Plugin",
2022-12-14 06:10:21 +00:00
"dev.inmo.plagubot.plugins.inline.queries.Plugin",
2022-09-14 20:27:06 +00:00
"dev.inmo.plaguposter.triggers.command.Plugin",
2022-12-14 06:10:21 +00:00
"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"
2022-08-19 18:52:31 +00:00
],
"posts": {
2022-09-14 20:27:06 +00:00
"chats": {
"targetChat": 12345678,
"cacheChat": 12345678,
2023-08-12 18:11:04 +00:00
"sourceChat": 12345678,
"targetChats": [12345678],
"_note": "You must set targetChat or targetChats with at least one object"
2022-09-14 20:27:06 +00:00
}
2022-09-04 07:27:35 +00:00
},
"ratingsPolls": {
"variants": {
2023-10-31 14:28:19 +00:00
"Cool": 2,
"Ok": 1,
"Not ok": -1,
"Inappropriate": -2,
"Results": 0
2022-09-04 07:27:35 +00:00
},
"autoAttach": true,
"ratingOfferText": "What do you think about it?"
2022-09-06 17:56:58 +00:00
},
"selector": {
"items": [
{
"time": {
"from": "00:00",
2022-09-14 20:27:06 +00:00
"to": "23:59"
2022-09-06 17:56:58 +00:00
},
"rating": {
2022-09-14 20:27:06 +00:00
"prefer": "max"
2022-09-06 17:56:58 +00:00
}
},
{
"time": {
2022-09-14 20:27:06 +00:00
"from": "23:59",
2022-09-06 17:56:58 +00:00
"to": "00:00"
},
"rating": {
"prefer": "max"
}
}
]
2022-09-06 18:23:14 +00:00
},
"timer_trigger": {
"krontab": "0 30 2/4 * *"
2022-09-09 11:27:11 +00:00
},
2022-09-14 20:27:06 +00:00
"panel": {
"textPrefix": "Post management:",
"buttonsPerRow": 2,
"parseMode": "MarkdownV2",
"deleteButtonText": "Delete"
},
"publish_command": {
"panelButtonText": "Publish"
2023-05-10 05:05:14 +00:00
},
"gc": {
"autoclear": {
"rating": -1,
"autoClearKrontab": "0 0 0 * *",
"skipPostAge": 86400
},
"immediateDrop": -6
2022-08-19 18:52:31 +00:00
}
}