aitu
v1.0.0-beta.1
Published
Package for Aitu services API (unofficial)
Downloads
1
Readme
aitu
A module for Aitu.io's service API, heavily inspired by negezor/vk-io and nitreojs/puregram.
Installation
Yarn
Recommended
yarn add aitu
NPM
npm i aitu
Example usage
const { Aitu } = require('aitu')
const aitu = new Aitu({
// Token received from @MasterService
token: ''
})
aitu.updates.on('Message', async context => {
const { name } = await aitu.api.getMe()
context.send(`Hello! My name is ${name}`)
})
aitu.updates.startPolling()