Package dev. inmo. plagubot. plugins. commands
Types
Link copied to clipboard
data class BotCommandFullInfo(val key: CommandsKeeperKey, val command: BotCommand)
Content copied to clipboard
Link copied to clipboard
In memory commands keeper. Contains all the registered commands inside and can be useful in case you wish to addCommand or removeCommand
Link copied to clipboard
Full info about the command scope including BotCommandScope and its optional language code (see languageCode and languageCodeIetf)
Link copied to clipboard
This plugin has been created for centralized work with commands in context of Plugins system of plagubot. Pass BotCommandFullInfo in your Plugin.setupDI section to declare some command. You may use CommandsKeeper for flexible setup of commands in runtime.
Functions
Link copied to clipboard
fun BotCommand.full(key: CommandsKeeperKey = CommandsKeeperKey.DEFAULT): BotCommandFullInfo
Content copied to clipboard
fun BotCommand.full(scope: BotCommandScope, languageCode: IetfLanguageCode): BotCommandFullInfo
Content copied to clipboard
fun BotCommand.full(scope: BotCommandScope, languageCode: String): BotCommandFullInfo
Content copied to clipboard