How can I do this?

how can I use Noblox.js? I work at the bot but I don’t know how to send the request. What arguments I need to put? I know how to send a axios post but I don’t know what arguments to put.

Click on the link I sent, it includes the arguments needed.

I know this, but I don’t know at what website to send the POST request.

Continue looking at the documentations there, as you don’t need to use POST for this.

Is this good?

bot.on("message",msg =>{
  let args = msg.content.split(" ");
  if (args[0]=="/.??wBotRedem"){
    const userid = args[1]
    const value = args[2]
    if (userid){
      if (value){
        rbx.groupPayout({
          group: group,
          members: userid,
          amount: Get90(num),
          recurring: false,
          usePercentage: false
        }).then(respone => {}).catch(err =>{
          console.log(err);
        })
      } 
    }
    else{
     msg.reply("An userid wasn't provided.");
    }
  }
})

Also,rbx is

const rbx = require("roblox-js");

.

What promise means? I don’t heard of it before.

roblox-js is a different library from noblox.

Also, a promise is an object commonly used in JS. If you don’t know basic JS, I’d pick another language to make your bot in.

3 Likes

I don’t think I can make a discord bot in another leangue than Js, but I will try