npm.io
1.1.2 • Published 1 year agoCLI

roflare

Licence
MPL-2.0
Version
1.1.2
Deps
7
Size
109 kB
Vulns
0
Weekly
0
Stars
5

View on NPM View on Yarn View on Github Typescript Typescript

Overview

Roflare allows you to interact with Roblox's web API in a variety of ways. A few examples are:

  • [✅] Fetch information about an experience
  • [✅] Fetch information about a user
  • [✅] Manage account

Roflare provides secure access to authentication-required features without ever asking for your password. Our login process uses ROBLOX's quick login system, keeping your credentials safe while enabling full API functionality.

Installation

#npm
npm i roflare

# yarn
yarn add roflare
Example

To learn more about Roflare, visit the documentation

import * as Roflare from 'roflare'

const userId = 80254
const friendList = await Roflare.GetUserFriendList(userId)
// [
//  {
//    "id": 1617749303,
//    "name": "bk52540",
//    "displayName": "BKmusic"
//  },
//  ...
// ]

// Send friend request to all user in friendList
friendList.forEach(user => {
    await Roflare.AddFriend(user.id)
    console.log(`Sent friend request: ${Roflare.ShortenUserUrl(user.id))}`)
})