0.0.13 • Published 7 years ago

workonflow-bot-client v0.0.13

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

workonflow-bot-client

Установка

$ npm install workonflow-bot-client

const botConnect = require('workonflow-bot-client').connect

const creds = {
  email: "you email",
  password: "you password"
}
(async () {
  const botClient = await botConnect(creds)
})()

Как использовать

const botClient = await botConnect(creds)

const { comment } = botClient

comment.onDirect(async message => {
  console.log('ON_DIRECT', message)
  const { teamId } = message
  const to = message.data.content.from

  const att = "text for response"
  const resp = await comment.create(teamId, { to, att })
  console.log('resp', resp)
})

Документация

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago