1.0.5 • Published 3 years ago

rocketbots v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

RocketBots Version

Use the RocketBots (Roblox API) through your RocketApps account! We take care of maintaining your Cookie & storing it in a secure way. No more “Damn, I accidentally put my Glitch project on public!”

Install

npm install rocketbots

Usage

Getting your team ID

  1. Head to rocketapps.bloxtech.tech.
  2. Sign up (or login) for an account.
  3. Create a team (Make sure to input the right Roblox group ID here, as this is the group ID that the module will use.)
  4. Once the team is created, press "manage" next to your team.
  5. Now head to the "integrations" tab.
  6. Press "Link Bot" button.
  7. In the input field, enter the cookie of your Robot and press the green "next" button.
  8. Confirm that we are linking the correct Roblox account.
  9. The page will now reload. Head to the "integrations" tab once again.
  10. On the bottom it will say "RocketApps also allows you to use your bots through our API. View the api here". Press the "here".
  11. You'll now be redirected to our API documentation. Head to the "settings" tab.
  12. Copy your team / loader ID here :-)

Requiring the module

const RocketBots = require('rocketbots');

(Make sure to run npm install rocketbots first! Else this will not work.)

Making a bot instance

const Bot = new RocketBots("YOUR_TEAM_ID_HERE")

Using a function

Bot.info().then((botInfo) => {
  console.log(botInfo);
});

Using a function (async)

const botInfo = await Bot.info();
console.log(botInfo);

Functions (and what they return)

.getIdFromUsername(username)

{
    success: true,
    response: 12345
}

.getJoinRequests()

[
  {
      requester: {
          userId: 1234,
          username: 'roblox',
          displayName: 'roblox'
      },
      created: "2021-03-03T17:45:02.75Z"
  },
]

.approveJoinRequest(userId)

{
    success: true,
    response: "Successfully accepted users join request."
}

.declineJoinRequest(userId)

{
    success: true,
    response: "Successfully declined user from join requests."
}

.shout(message)

{
    success: true,
    response: "Successfully shouted to group."
}

.messageUser(userId,subject,message)

{
    success: true,
    response: "Successfully sent message to user."
}

.messageUser(userId,subject,message)

{
    success: true,
    response: "Successfully sent message to user."
}

.rankInGroup(userId,rankId)

{
    success: true,
    response: "Successfully ranked user in group."
}

.exile(userId)

{
    success: true,
    response: "Successfully exiled user from group."
}

Support

You can join our Discord server and open a ticket for support.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago