How would I go about making a Discord-Roblox bot?

just add 0.0.0.0 and 0.0.0.0/0 to ip’s

Yes, my guess is that you entered it wrong.

But you still need to fix the ip thing, because that will be an issue when you actually run it on repl it.

@madonchik123 @ketrab2004
New message thingy
image
Not sure what this means

you must have body that sends message like this

const postData = JSON.stringify({
  message: '{message}'
});
fetch(`https://apis.roblox.com/messaging-service/v1/universes/${universeId}/topics/${topic}`, {
  method: 'POST',
  headers: headers,
  body: postData
})
1 Like

Current code looks something like this

remove the json.stringify from body you already stringify it in postdata

and you should use replit secrets or else people can steal your api key

2 Likes

Forgot to block that out, oopsies

And it works, finally.
Man thank you @madonchik123 and @ketrab2004, yall are legends. Wouldn’t have done this without you.
Wish I could mark you both as solutions but sadly can’t. Will have to give it to ketrab tho, sorry madon.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.