1.0.10 • Published 2 years ago

cabal-bot-core v1.0.10

Weekly downloads
1
License
AGPL-3.0
Repository
-
Last release
2 years ago

Cabal Bot Core

Basic functionality for cabal bots (https://cabal.chat/). For more advanced command parsing see cabal-bot-pipeline.

Getting Started

Installing

npm install cabal-bot-core

Examples

var CabalBot = require('cabal-bot')

const cb = new CabalBot('test-bot')

cb.on('new-command', (envelope, cabal) => {
  console.log('command entered!')
})

cb.on('new-message', (envelope, cabal) => {
  cabal.publishMessage({
    type: 'chat/text',
    content: {
      text: envelope.message.value.content.text,
      channel: envelope.channel
    }
  })
})

cb.joinCabal('{key}')
1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago