From ff44d8c547999b804291d63b597e3fe655f9323a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Jul 2022 11:50:47 +0600 Subject: [PATCH] update readme --- README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index a3ed23c..c523734 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,26 @@ This plugin has been created for centralized work with commands in your plugins. You may pass your commands (even in runtime) and they will automatically appear in bot commands for users +## How to include + +Add dependency: + +Gradle: + +```groovy +api "dev.inmo:plagubot.plugins.commands:$commands_version" +``` + +Maven: + +```xml + + dev.inmo + plagubot.plugins.commands + ${commands_version} + +``` + ## How to use End user should include in his plugins section next line: @@ -54,23 +74,3 @@ retrieved from `koin` via simple `koin.get()` or `koin.commandsK Just as in the code above (in `setupDI`) you may pass all the command environment and it will be automatically updated for bot. - -## How to include - -Add dependency: - -Gradle: - -```groovy -api "dev.inmo:plagubot.plugins.commands:$commands_version" -``` - -Maven: - -```xml - - dev.inmo - plagubot.plugins.commands - ${commands_version} - -```