A b9 slack bot plugin, which enables logging and inspecting.
debug_log
{Function}
console.log
Function which receives json emitted by listeners. Set tofalse
to disable.
Posts a formatted JSON attachment, to the provided channel. Useful for logging output during development.
-
channel
{String}
Theid
of the destination channel. -
value
{Any}
The value to log.
Sends emitted json to debug_log
.
Sends emitted json to debug_log
.
Inspect properties of the b9
instance, from within slack. Accepts deeply
namespaced properties and bracket notation. Result is posted as a JSON file snippet.
This should only be used during development, or within a trusted environment,
as anything stored on the b9
instance could be exposed to any user.