Skip to content

mhelgeson/b9-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM
Build Status Coverage Status


b9-debug

A b9 slack bot plugin, which enables logging and inspecting.

Options

  • debug_log {Function} console.log
    Function which receives json emitted by listeners. Set to false to disable.

Methods

b9.debug( channel, value )

Posts a formatted JSON attachment, to the provided channel. Useful for logging output during development.

  • channel {String}
    The id of the destination channel.

  • value {Any}
    The value to log.

Listeners

"rtm.send"

Sends emitted json to debug_log.

"rtm.read"

Sends emitted json to debug_log.

Commands

inspect [prop]

Inspect properties of the b9 instance, from within slack. Accepts deeply namespaced properties and bracket notation. Result is posted as a JSON file snippet.

Warning

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.

About

A b9 slack bot plugin, which enables logging and inspecting.

Resources

License

Stars

Watchers

Forks

Packages

No packages published