Discord bot with roles

Hello,

First of all what i’m trying to make is something with a discord bot but i don’t know where to begin to make this script and stuff and i can’t find any info.

So what i’m trying to make is a discord bot that will give you roles on my discord server if you reach something like level 50 or level 100 in my game so something what tower defense simulator uses in their server but i wanna try to make the same thing but i don’t know anything about webhooks and stuff can somebody help me pls.

2 Likes

Well, you wouldn’t want to use a webhook because that only sends data to discord you’d need an open port and program rest API for levels and such.

2 Likes

And how can i create that if you can tell me that or give me some info about it cause it seems hard to find some info about it on youtube

if i can’t find it i’m gonna contact someone who does know it and also give some information about it in this topic

Watch how to make a simple bot first at least make the basics simple. Use whatever language you want but I suggest discord.js because of its wide library and it being heavily supported. Then we would have to talk about having a https port open for data to travel through

1 Like

You’ll need to get hosting or host it yourself and port forward to your server for the rest api.

1 Like