A basic script for sending messages as requests, with an authorisation token and channel ID(s) as input
-
Navigate to the directory in which you have saved/cloned this project.
cd [path]
-
Install Dependencies:
pip install -r requirements.txt
or
pip install requests
-
Run the Script:
python main.py
- Go to discord.com and sign in
- Go to any channel and open the network tab by pressing F12
- Then make sure that network activity is being recorded.
- Send a message in the channel you are in
![](https://private-user-images.githubusercontent.com/83806444/298202156-5907ecdf-a57d-447e-ad2b-545df4c81d4c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk4NTksIm5iZiI6MTczOTQzOTU1OSwicGF0aCI6Ii84MzgwNjQ0NC8yOTgyMDIxNTYtNTkwN2VjZGYtYTU3ZC00NDdlLWFkMmItNTQ1ZGY0YzgxZDRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5MzkxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyNGQ0M2Y2NTY1ZDM3ZWVlNTk4NTUwZjI5M2EyODExNDdkODZmOWEyODUwYTBjYmVjNTZlZjgwZWQxMDI5NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cNdc26egnJGv5UvkkHVU4pr_tLa5XGBkoM2bp9IXHB4)
After sending, you should see something like this pop up:
![](https://private-user-images.githubusercontent.com/83806444/298202412-38dcae66-923b-4d0c-831a-79939ffad4cd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk4NTksIm5iZiI6MTczOTQzOTU1OSwicGF0aCI6Ii84MzgwNjQ0NC8yOTgyMDI0MTItMzhkY2FlNjYtOTIzYi00ZDBjLTgzMWEtNzk5MzlmZmFkNGNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5MzkxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzYmZkMDBkNzliZjNjOGY4OGY5YTUxN2U4OWFlNDA2M2M3MjZlNmRiYmFiOWIzM2U3YWVkYjlmMTRiY2U5MzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0x5J7tIz0ufsDqxZU3LXo5bc6Xm1YyMee1JE4Fixq5Q)
- Copy it as shown
- Go to the directory where you saved/cloned this project, you should see a src folder, if you don't see a folder run the program, it should create one
- in the src folder, create a txt file with the name you want to use.
- if it looks like this, you have done everything right.
![](https://private-user-images.githubusercontent.com/83806444/298203817-05d2e226-ef9e-4fdf-96a9-101288df99d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk4NTksIm5iZiI6MTczOTQzOTU1OSwicGF0aCI6Ii84MzgwNjQ0NC8yOTgyMDM4MTctMDVkMmUyMjYtZWY5ZS00ZmRmLTk2YTktMTAxMjg4ZGY5OWQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5MzkxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5YjNmNjQ3ZDYyMzY5Mjc4NWM0MTdjYTQ2Njk2NTE1ZWVjZjQ1NzkzM2ZhNjJjNjA0ZGZhM2YwNGNiY2ZjYzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.C5eAed8aRr0D92oDB91DyhISxx2ZyNdAHvaGRYmWteo)
If you have a more user friendly idea for adding accounts feel free to contribute.
- This script should only be used for educational purposes.
- Please respect Discord's terms of service.
- Ensure that you have the necessary dependencies installed before running the script.
Feel free to customize the headings, formatting, or any additional information based on your specific project needs.