0.0.13 • Published 5 years ago

workonflow-bot-client v0.0.13

Weekly downloads
2
License
MIT
Repository
-
Last release
5 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

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago