Search
Preparing search index...
The search index is not available
Botyo Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
CommandManager
Class CommandManager
Hierarchy
CommandManager
Index
Constructors
constructor
Properties
CONFIG_
KEY_
COMMAND
CONFIG_
KEY_
PREFIX
DEFAULT_
PREFIX
Methods
get
Command
Name
For
Module
InContext
get
Command
ToCommand
Module
Map
get
Commands
ByModule
And
Chat
Thread
Id
populate
get
Prefix
OfContext
is
Command
Enabled
InContext
is
Command
Hidden
InContext
make
Help
Text
Constructors
constructor
new
Command
Manager
(
moduleRegistry
:
ModuleRegistry
, chatThreadUtils
:
ChatThreadUtils
)
:
CommandManager
Parameters
moduleRegistry:
ModuleRegistry
chatThreadUtils:
ChatThreadUtils
Returns
CommandManager
Properties
Static
CONFIG_
KEY_
COMMAND
CONFIG_
KEY_
COMMAND
:
"command"
= "command"
Static
CONFIG_
KEY_
PREFIX
CONFIG_
KEY_
PREFIX
:
"prefix"
= "prefix"
Static
DEFAULT_
PREFIX
DEFAULT_
PREFIX
:
"#"
= "#"
Methods
get
Command
Name
For
Module
InContext
get
Command
Name
For
Module
InContext
(
module
:
CommandModule
, ctx
:
Message
)
:
string
Parameters
module:
CommandModule
ctx:
Message
Returns
string
get
Command
ToCommand
Module
Map
get
Command
ToCommand
Module
Map
(
msg
:
Message
)
:
NameToCommandMap
Parameters
msg:
Message
Returns
NameToCommandMap
get
Commands
ByModule
And
Chat
Thread
Id
get
Commands
ByModule
And
Chat
Thread
Id
(
module
:
CommandModule
, chatThreadId
:
FacebookId
)
:
string
|
string
[]
Parameters
module:
CommandModule
chatThreadId:
FacebookId
Returns
string
|
string
[]
populate
populate
(
)
:
void
Returns
void
Static
get
Prefix
OfContext
get
Prefix
OfContext
(
cfg
:
ContextualizableModuleConfiguration
, ctx
:
Message
)
:
any
Parameters
cfg:
ContextualizableModuleConfiguration
ctx:
Message
Returns
any
Static
is
Command
Enabled
InContext
is
Command
Enabled
InContext
(
commandModule
:
CommandModule
, msg
:
Message
)
:
boolean
Parameters
commandModule:
CommandModule
msg:
Message
Returns
boolean
Static
is
Command
Hidden
InContext
is
Command
Hidden
InContext
(
commandModule
:
CommandModule
, ctx
:
Message
)
:
boolean
Parameters
commandModule:
CommandModule
ctx:
Message
Returns
boolean
Static
make
Help
Text
make
Help
Text
(
prefix
:
string
, commandName
:
string
, commandModule
:
CommandModule
)
:
string
Parameters
prefix:
string
commandName:
string
commandModule:
CommandModule
Returns
string
Globals
Configuration
Context
Abstract
Configuration
Abstract
Module
Configuration
Application
Container
Async
Resolvable
Chat
Participants
Resolver
Async
Resolvable
Facebook
Chat
Api
Botyo
Botyo
Builder
Chat
Thread
Filter
Chat
Thread
Participants
Updater
Scheduled
Task
Chat
Thread
Utils
Impl
Command
Executor
Filter
Command
Manager
constructor
CONFIG_
KEY_
COMMAND
CONFIG_
KEY_
PREFIX
DEFAULT_
PREFIX
get
Command
Name
For
Module
InContext
get
Command
ToCommand
Module
Map
get
Commands
ByModule
And
Chat
Thread
Id
populate
get
Prefix
OfContext
is
Command
Enabled
InContext
is
Command
Hidden
InContext
make
Help
Text
Facebook
Chat
Api
Facebook
Login
Helper
Filter
Chain
Friendly
Command
Error
Handler
Help
Command
Lodash
Configuration
Message
Context
Aware
Module
Configuration
Message
Context
Switcher
Impl
Module
Aware
Runtime
Impl
Module
Configuration
Impl
Module
Registry
Task
Scheduler
Yaml
Application
Configuration
Name
ToCommand
Map
LOGGER_
NAME
Generated using
TypeDoc