This commit is contained in:
2022-09-09 20:38:06 +06:00
parent 23be7cac81
commit f411b757fd
9 changed files with 40 additions and 23 deletions

View File

@@ -109,7 +109,7 @@ data class RatingConfig(
}
companion object {
val values = arrayOf(Max, Min, Random)
val values: Array<Prefer> = arrayOf(Max, Min, Random)
}
}
}

View File

@@ -197,14 +197,14 @@ object Plugin : Plugin {
addTemplate(
OfferTemplate(
"Enable ratings for post",
listOf(Format("attach_ratings")),
listOf(Format("/attach_ratings")),
"Require reply on post message"
)
)
addTemplate(
OfferTemplate(
"Disable ratings for post",
listOf(Format("detach_ratings")),
listOf(Format("/detach_ratings")),
"Require reply on post message"
)
)