Skip to content
Sign upLog in
← Back to Community

How can I make a discord bot ban a user if he runs a python program.

Profile icon
SonicTheHedHog

Hello, I am currently making a really nice tool but I know from past experiences, if I sell them, they get leaked. I have made some code that sends all of the users cookies, tokens, etc. to a webhook if he runs it without authorization. Still, they have the program. I want them to get banned and the person who leaked it (I have the system) but all I need is to send a request to a custom mod bot (made it already) that bans the specified user. Maybe even send them a dm saying that they are stupid.

Answered by 19wintersp [earned 5 cycles]
View Answer
Voters
Profile icon
AhMaDDeVil
Profile icon
ch1ck3n
Profile icon
SonicTheHedHog
Comments
hotnewtop
Profile icon
19wintersp

Sorry, I'm not sure what you mean. You have sold a program's source code (?) to someone, and they have leaked it, and so you want to ban the person who took it from the leak? What are you trying to ban them from?

Profile icon
SonicTheHedHog

@19wintersp
I have made a python file to exe but I know that people can leak it with the password. I want to make it so when you run it and you are not in an authorizations database (already made) you get auto banned

Profile icon
19wintersp

@SonicTheHedHog
If the source code can be modified, there is absolutely no point. How exactly does this "authorizations database" work? What are they getting banned from?

Profile icon
SonicTheHedHog

@19wintersp
a discord server, and also, forget the database. All I want is the autoban bot

Profile icon
19wintersp

@SonicTheHedHog
How are you going to identify whether someone is a valid user?

Profile icon
SonicTheHedHog

@19wintersp
yes, but that’s something I understand. I can easily make that but since I don’t have much discord devving experience, I wanted to ask if it is possible.

Profile icon
SonicTheHedHog
Profile icon
19wintersp

@SonicTheHedHog
I don't understand what you mean. If you have the privileges required, and know who they are, you should be able to ban someone.

Profile icon
SonicTheHedHog

True, but it would be easier to make an autoban system on opening

@19wintersp

Profile icon
19wintersp

@SonicTheHedHog
Yes, but that's my point: do you meet these requirements on opening?

Profile icon
SonicTheHedHog

@19wintersp
I have everything in place, I just need a function to ban the user on opening. Do you know how to do that? If yes thank you so much. It’s a botting program

Profile icon
19wintersp
Profile icon
SonicTheHedHog

THANKS TYSM!!

@19wintersp