Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*INSERT GROUP ID AND COOKIE BELOW*/
- var groupId = 12345 // << Replace 12345 with your Group Id
- var cookie = "" // << Put your account cookie inside of the quotes
- /*INSERT GROUP ID AND COOKIE ABOVE*/
- const express = require("express");
- const rbx = require("noblox.js");
- const app = express();
- app.use(express.static("public"));
- async function startApp() {
- await rbx.setCookie(cookie);
- let currentUser = await rbx.getCurrentUser();
- console.log(currentUser.UserName);
- }
- startApp();
- app.get("/ranker", (req, res) => {
- var User = req.param("userid");
- var Rank = req.param("rank");
- rbx.setRank(groupId, parseInt(User), parseInt(Rank));
- res.json("Ranked!");
- });
- const listener = app.listen(process.env.PORT, () => {
- console.log("Your app is listening on port " + listener.address().port);
- });
Add Comment
Please, Sign In to add comment