OP 04 February, 2021 - 10:18 PM
(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.
Found it... creating via websocket via /gateway/bots instead of /gateway (+ expecting shard information from the former). Hope someone finds this useful :)
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 MoreHello,
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 :)