GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - xaronnn/js-lanyard: Pure JavaScript library for Lanyard.

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.html
example.html
 
 
lanyard.js
lanyard.js
 
 

Repository files navigation

JS-Lanyard

Use Lanyard in your Web App. Phineas - Creator of Lanyard API

CDN

  • Call to your page (https://cdn.jsdelivr.net/gh/0x5841524f4e/js-lanyard/lanyard.js)

Usage

Using without websocket:

 // rest with single user example
lanyard({
    userId: "213325478096797697",
}).then(console.log) // presenceData

// rest with multiple  users example
lanyard({
    userId: ["213325478096797697", "331846231514939392"],
}).then(console.log) // presenceData[]

Using with websocket:

// websocket with single user example
lanyard({
    userId: "213325478096797697",
    socket: true,
    onPresenceUpdate: console.log // presenceData
}) // returns a websocket

// websocket with multiple users example
lanyard({
    userId: ["213325478096797697", "331846231514939392"],
    socket: true,
    onPresenceUpdate: console.log // presenceData[]
}) // returns a websocket

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

About

Pure JavaScript library for Lanyard.

Resources

Readme
MIT license
Activity

Stars

28 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.