full recode without using idiotic revolt.py library
A proof-of-concept (POC) selfbot for Revolt Revolt.chat, demonstrating how to interact with the API using Python.
- Basic command handling with a configurable prefix
- Fetch user information using
userinfocommand - Send messages and embeds
- Configurable settings via
config.json - Logging for debugging
- Auto name changer (Change name by modifying usernames.txt)
- Python 3.8+
aiohttp,requests, andrevoltPython modules
- Clone the repository:
git clone https://github.com/cyn-ically/Revolt-Selfbot/Revolt-Selfbot.git cd Revolt-Selfbot - Install dependencies:
pip install -r requirements.txt
- Create a
config.jsonfile (it will be generated automatically on first run if missing):{ "token": "YOUR_TOKEN_HERE", "prefix": "!", "commands": { "help": "Show this help message", "hello": "Get a greeting from the bot" "userinfo": "Fetch user info" } } - Edit
config.jsonand replaceYOUR_TOKEN_HEREwith your Revolt session token.
Run the bot using:
python main.py| Command | Description |
|---|---|
!help |
Displays available commands |
!hello |
Responds with a greeting |
!userinfo <user_id> |
Fetches user info |
!username <new_name> |
Change your username |
Send the !userinfo command any chat:
!userinfo @theuserThe bot will respond with user details if available.
Click to view the steps for obtaining your Revolt session token
- To run the Revolt Selfbot, you'll need your x-session-token, which can be obtained from the network requests in your browser. Follow these steps carefully:
- Go to Revolt and log in to your account.
- Open Developer Tools:
- Google Chrome / Edge: Press F12 or Ctrl + Shift + I
- Firefox: Press F12 or Ctrl + Shift + I
- Click on the "Network" tab in Developer Tools.
- Make sure the filter is set to "Fetch/XHR" (in Chrome) or "XHR" in Firefox.
- If the network log is empty, refresh the page (F5) to populate it with requests.
- Open any DM or server channel.
- Type a message and send it.
- Look for a request named "messages" in the Network tab.
- Step 4: Find Your Token
- Click on the "messages" request.
- Navigate to the "Headers" tab.
- Scroll down to the Request Headers section.
- Locate the x-session-token field.
- Copy the token value (a long alphanumeric string).
This selfbot is for educational purposes only. Usage of selfbots may violate Revolt's Terms of Service. Use at your own risk.
Apache 2.0 License