PlaguPoster/runner/config.json

81 lines
1.7 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",
2022-09-09 11:27:11 +00:00
"dev.inmo.plaguposter.triggers.selector_with_timer.Plugin",
2022-09-09 13:40:46 +00:00
"dev.inmo.plaguposter.ratings.gc.Plugin",
2022-09-09 14:38:06 +00:00
"dev.inmo.plaguposter.inlines.Plugin",
"dev.inmo.plaguposter.triggers.command.Plugin"
2022-08-19 18:52:31 +00:00
],
"posts": {
"targetChat": 12345678,
2022-09-04 07:27:35 +00:00
"cacheChat": 12345678,
2022-08-19 18:52:31 +00:00
"sourceChat": 12345678
2022-09-04 07:27:35 +00:00
},
"ratingsPolls": {
"variants": {
"Ok": 1,
"Not ok": -1
},
"autoAttach": true,
"ratingOfferText": "What do you think about it?"
2022-09-06 17:56:58 +00:00
},
"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"
}
}
]
2022-09-06 18:23:14 +00:00
},
"timer_trigger": {
"krontab": "0 30 2/4 * *"
2022-09-09 11:27:11 +00:00
},
"gc": {
"autoclear": {
"rating": -2,
"autoClearKrontab": "0 0 0 * *",
"skipPostAge": 86400
}
2022-08-19 18:52:31 +00:00
}
}