preview version of registrar

This commit is contained in:
2022-08-20 00:52:31 +06:00
parent 36bedff5f3
commit 941505df42
12 changed files with 96 additions and 9 deletions

22
runner/build.gradle Normal file
View File

@@ -0,0 +1,22 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id "org.jetbrains.kotlin.plugin.serialization"
id 'application'
}
dependencies {
implementation libs.kotlin
api libs.plagubot.bot
api project(":plaguposter.posts")
api project(":plaguposter.posts_registrar")
}
application {
mainClassName = 'dev.inmo.plagubot.AppKt'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

21
runner/config.json Normal file
View File

@@ -0,0 +1,21 @@
{
"database": {
"url": "jdbc:sqlite:file:test?mode=memory&cache=shared IT IS JUST EXAMPLE",
"driver": "org.sqlite.JDBC",
"username": "OPTIONAL username",
"password": "OPTIONAL password",
"initAutomatically": false
},
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
"plugins": [
"dev.inmo.plaguposter.posts.Plugin",
"dev.inmo.plaguposter.posts.registrar.Plugin"
],
"posts": {
"targetChat": 12345678,
"cacheChat": 12345678
},
"registrar": {
"sourceChat": 12345678
}
}