mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-12-22 22:17:14 +00:00
81 lines
1.7 KiB
JSON
81 lines
1.7 KiB
JSON
{
|
|
"database": {
|
|
"url": "jdbc:postgresql://127.0.0.1:8091/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.triggers.selector_with_timer.Plugin",
|
|
"dev.inmo.plaguposter.ratings.gc.Plugin",
|
|
"dev.inmo.plaguposter.inlines.Plugin",
|
|
"dev.inmo.plaguposter.triggers.command.Plugin"
|
|
],
|
|
"posts": {
|
|
"targetChat": 12345678,
|
|
"cacheChat": 12345678,
|
|
"sourceChat": 12345678
|
|
},
|
|
"ratingsPolls": {
|
|
"variants": {
|
|
"Ok": 1,
|
|
"Not ok": -1
|
|
},
|
|
"autoAttach": true,
|
|
"ratingOfferText": "What do you think about it?"
|
|
},
|
|
"selector": {
|
|
"items": [
|
|
{
|
|
"time": {
|
|
"from": "00:00",
|
|
"to": "00:00"
|
|
},
|
|
"rating": {
|
|
"min": 0.0,
|
|
"max": 1.0,
|
|
"prefer": "random"
|
|
}
|
|
},
|
|
{
|
|
"time": {
|
|
"from": "00:00",
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"timer_trigger": {
|
|
"krontab": "0 30 2/4 * *"
|
|
},
|
|
"gc": {
|
|
"autoclear": {
|
|
"rating": -2,
|
|
"autoClearKrontab": "0 0 0 * *",
|
|
"skipPostAge": 86400
|
|
}
|
|
}
|
|
}
|