Socket
Socket
Sign inDemoInstall

aitu

Package Overview
Dependencies
20
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aitu

Package for Aitu services API (unofficial)


Version published
Weekly downloads
13
Maintainers
1
Install size
1.25 MB
Created
Weekly downloads
 

Readme

Source

aitu npm GitHub Workflow Status Aitu chat

A module for Aitu.io's service API, heavily inspired by negezor/vk-io and nitreojs/puregram.

Documentation (RU)

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()

More examples

Keywords

FAQs

Last updated on 27 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc