Skip to content

📡 - A library for interacting with Http Interaction API (API for receiving interactions.)

License

Notifications You must be signed in to change notification settings

RabbitHouseCorp/usagi-http-interaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usagi-http-interaction

A library for interacting with Http Interaction API (API for receiving interactions.)

Install

Github: npm install RabbitHouseCorp/usagi-http-interaction#main.

It is necessary that you have Git installed on the machine.

Example of how to connect

const { UsagiClient } = require('usagi-http-interaction')

const usagiClient = new UsagiClient({
  protocol: 'http://',
  ip: '127.0.0.1',
  secret: 'key secret 👀',
  publicKey: 'PublicKey',
  client: client,
  eventName: 'interactionCreate',
  lengthLatency: 10,
  websocketOptions: {
    reconnect: true,
    time: 1 * 1000,
    maxReconnect: 10
  }

  // Events
  //
  // reconnecting
  // connected
  // open
  // close
  // message
  // unexpected-response
  // upgrade
  // interaction
  // httpGateway
  clientUusagiClientsagi.on('interaction', (interactionData) => {
    // ... your code!
  })

  usagiClient.connect() // For connect!
})

Download API

Click Here (https://github.com/RabbitHouseCorp/http-interaction)

About

📡 - A library for interacting with Http Interaction API (API for receiving interactions.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published