1.0.5 • Published 3 years ago
rocketbots v1.0.5
RocketBots
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
- Head to rocketapps.bloxtech.tech.
- Sign up (or login) for an account.
- Create a team (Make sure to input the right Roblox group ID here, as this is the group ID that the module will use.)
- Once the team is created, press "manage" next to your team.
- Now head to the "integrations" tab.
- Press "Link Bot" button.
- In the input field, enter the cookie of your Robot and press the green "next" button.
- Confirm that we are linking the correct Roblox account.
- The page will now reload. Head to the "integrations" tab once again.
- On the bottom it will say "RocketApps also allows you to use your bots through our API. View the api here". Press the "here".
- You'll now be redirected to our API documentation. Head to the "settings" tab.
- 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.