Skip to content

Instantly share code, notes, and snippets.

@rigwild
Last active April 9, 2022 20:37
Show Gist options
  • Save rigwild/28f5d9479e3e122070e27db84e104719 to your computer and use it in GitHub Desktop.
Save rigwild/28f5d9479e3e122070e27db84e104719 to your computer and use it in GitHub Desktop.
This has moved to https://github.com/rigwild/discord-self-bot-console --- A simple Discord Self-bot using console
// Due to some interest, I created a proper repo.
// Check it out! :)
// https://github.com/rigwild/discord-self-bot-console
@rigwild
Copy link
Author

rigwild commented Apr 26, 2021

@5rbsh518 this does not support the WebSocket events API.
You can try to check the recent messages using api.getMessages every x seconds and check if a message start with pong.

@Omar-Aljohani
Copy link

Omar-Aljohani commented Apr 26, 2021

Wouldn't that get me banned if I requested messages every 1 second or 2 seconds?

I will request a maximum of 5 messages if I'll spam it

@rigwild
Copy link
Author

rigwild commented Apr 26, 2021

I don't know, maybe. I have used this script multiple times in the past to delete 100k+ messages of mine accross private messages and servers and never got banned.
But I can't garantee anything.

@AceN1nja
Copy link

Hi, I have no experience with JS and so I am unable to debug it. I tried using the script on console and I am getting an error saying 'delay is not defined'.

@beppe9000
Copy link

I am looking at ways to extract the auth token by a web extension...

@rigwild
Copy link
Author

rigwild commented Jun 13, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment