2022-09-09 16:59:49 +00:00
|
|
|
|
{
|
|
|
|
|
"database": {
|
|
|
|
|
"url": "jdbc:postgresql://postgres/test_db",
|
|
|
|
|
"username": "test_user",
|
|
|
|
|
"password": "test_password",
|
|
|
|
|
"driver": "org.postgresql.Driver"
|
|
|
|
|
},
|
|
|
|
|
"botToken": "1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi",
|
|
|
|
|
"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",
|
2022-10-11 05:38:50 +00:00
|
|
|
|
"dev.inmo.plagubot.plugins.inline.queries.Plugin",
|
2022-09-09 16:59:49 +00:00
|
|
|
|
"dev.inmo.plaguposter.triggers.command.Plugin"
|
|
|
|
|
],
|
|
|
|
|
"posts": {
|
|
|
|
|
"chats": {
|
|
|
|
|
"targetChat": -1001234567890,
|
|
|
|
|
"cacheChat": -1001234567890,
|
|
|
|
|
"sourceChat": -1001234567890
|
|
|
|
|
},
|
|
|
|
|
"autoRemoveMessages": true
|
|
|
|
|
},
|
|
|
|
|
"ratingsPolls": {
|
|
|
|
|
"variants": {
|
|
|
|
|
"Круть": 2,
|
|
|
|
|
"Ок": 1,
|
|
|
|
|
"Не ок": -1,
|
|
|
|
|
"Совсем не ок": -2,
|
|
|
|
|
"Посмотреть результаты": 0
|
|
|
|
|
},
|
|
|
|
|
"autoAttach": true,
|
|
|
|
|
"ratingOfferText": "How do you like it?"
|
|
|
|
|
},
|
|
|
|
|
"selector": {
|
|
|
|
|
"items": [
|
|
|
|
|
{
|
|
|
|
|
"time": {
|
|
|
|
|
"from": "23:00",
|
|
|
|
|
"to": "23:59"
|
|
|
|
|
},
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": -1.0,
|
|
|
|
|
"max": 2.0,
|
|
|
|
|
"prefer": "max",
|
|
|
|
|
"otherwise": {
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": 2.0,
|
|
|
|
|
"prefer": "min",
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"time": {
|
|
|
|
|
"from": "00:00",
|
|
|
|
|
"to": "06:59"
|
|
|
|
|
},
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": -1.0,
|
|
|
|
|
"max": 2.0,
|
|
|
|
|
"prefer": "max",
|
|
|
|
|
"otherwise": {
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": 2.0,
|
|
|
|
|
"prefer": "min",
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"time": {
|
|
|
|
|
"from": "07:00",
|
|
|
|
|
"to": "12:00"
|
|
|
|
|
},
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": 1.0,
|
|
|
|
|
"prefer": "min",
|
|
|
|
|
"otherwise": {
|
|
|
|
|
"rating": {
|
|
|
|
|
"max": 1.0,
|
|
|
|
|
"prefer": "max",
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"time": {
|
|
|
|
|
"from": "12:00",
|
|
|
|
|
"to": "16:00"
|
|
|
|
|
},
|
|
|
|
|
"rating": {
|
|
|
|
|
"min": 2.0,
|
|
|
|
|
"prefer": "min",
|
|
|
|
|
"otherwise": {
|
|
|
|
|
"rating": {
|
|
|
|
|
"max": 2.0,
|
|
|
|
|
"prefer": "max",
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"time": {
|
|
|
|
|
"from": "16:00",
|
|
|
|
|
"to": "23:00"
|
|
|
|
|
},
|
|
|
|
|
"rating": {
|
|
|
|
|
"prefer": "max",
|
|
|
|
|
"postAge": 86400
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"timer_trigger": {
|
|
|
|
|
"krontab": "0 30 */5 * *"
|
|
|
|
|
},
|
|
|
|
|
"gc": {
|
|
|
|
|
"autoclear": {
|
|
|
|
|
"rating": -1,
|
|
|
|
|
"autoClearKrontab": "0 0 0 * *",
|
|
|
|
|
"skipPostAge": 86400
|
|
|
|
|
},
|
|
|
|
|
"immediateDrop": -2
|
|
|
|
|
}
|
|
|
|
|
}
|