Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1215

How does a discord bot library like aegis.cpp prevent self bots?

by cheezer - 04 February, 2021 - 10:18 PM
This post is by a banned member (cheezer) - Unhide
cheezer  
Registered
1
Posts
1
Threads
4 Years of service
#1
(This post was last modified: 04 February, 2021 - 11:57 PM by cheezer.)
Hello,

I was wondering if anyone here knows in what ways some of these discord libraries can prevent self bots (based on user accounts, as opposed to bot accounts). I'm trying to find in aegis.cpp what I can modify to allow making a self bot. I'm assuming it's likely to do with something in the HTTP Rest API communicating with discord, but am struggling to find which headers are causing discord to spit a 401 Unauthorised when a user account's token is passed instead of a bot account's. Any clues? Thanks!

Note: discord.py (python's popular library) easily allows self-bots, but haven't had much luck comparing their implementations.

(04 February, 2021 - 10:18 PM)cheezer Wrote: Show More
Hello,

I was wondering if anyone here knows in what ways some of these discord libraries can prevent self bots (based on user accounts, as opposed to bot accounts). I'm trying to find in aegis.cpp what I can modify to allow making a self bot. I'm assuming it's likely to do with something in the HTTP Rest API communicating with discord, but am struggling to find which headers are causing discord to spit a 401 Unauthorised when a user account's token is passed instead of a bot account's. Any clues? Thanks!

Note: discord.py (python's popular library) easily allows self-bots, but haven't had much luck comparing their implementations.

Found it... creating via websocket via /gateway/bots instead of /gateway (+ expecting shard information from the former). Hope someone finds this useful :)
This post is by a banned member (Klunk) - Unhide
Klunk  
Registered
98
Posts
4
Threads
4 Years of service
#2
Or they just add "Bot <token>" quz that how you connect to discord with a bot, And if you try with user token the token will be invaild

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)