This commit is contained in:
2021-11-12 14:05:42 +06:00
parent 8885047409
commit d7638d620f
4 changed files with 9 additions and 22 deletions

View File

@@ -5,18 +5,6 @@ import kotlinx.coroutines.*
import kotlinx.serialization.InternalSerializationApi
import java.io.File
@Deprecated(
"This method is redundant due to new class PlaguBot",
ReplaceWith(
"PlaguBot(config).start(scope)",
"dev.inmo.plagubot.PlaguBot"
)
)
suspend inline fun initPlaguBot(
config: Config,
scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
): Job = PlaguBot(config).start(scope)
/**
* This method by default expects one argument in [args] field: path to config
*/