inluding sdi

This commit is contained in:
2021-02-17 01:21:41 +06:00
parent a2b3fe57ac
commit 2baed760f7
8 changed files with 34 additions and 9 deletions

View File

@@ -33,7 +33,13 @@ interface Plugin {
*/
suspend operator fun BehaviourContext.invoke(
database: Database
) {
invoke(bot, database, flowsUpdatesFilter, scope)
}
) = invoke(bot, database, flowsUpdatesFilter, scope)
/**
* This method (usually) will be invoked just one time in the whole application.
*/
suspend operator fun BehaviourContext.invoke(
database: Database,
params: Map<String, Any>
) = invoke(database)
}