Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielhe4rt/disco-the-ripper
PHP Discord Webcrawler to log all messages from a Discord Chat.
https://github.com/danielhe4rt/disco-the-ripper
discord discord-bot laravel php
Last synced: 10 days ago
JSON representation
PHP Discord Webcrawler to log all messages from a Discord Chat.
- Host: GitHub
- URL: https://github.com/danielhe4rt/disco-the-ripper
- Owner: DanielHe4rt
- Created: 2021-07-17T20:42:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T20:34:51.000Z (almost 3 years ago)
- Last Synced: 2024-05-02T03:40:13.132Z (6 months ago)
- Topics: discord, discord-bot, laravel, php
- Language: PHP
- Homepage:
- Size: 552 KB
- Stars: 45
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Disco the Ripper
Disco the Ripper was created to rip all messages from a Discord specific channel into JSON via CLI and help people to investigate
some servers who has awkward channels before they get deleted.This project was designed with [Laravel Zero](https://laravel-zero.com).
## Installation
### 1. Install the dependencies
Use the package manager [composer](https://getcomposer.org) to install Disco the Ripper.
Go to the project folder after install Composer and run the command below:
```bash
composer install
```### 2. Setup your credentials
#### Authorization Token
After everything get installed you should create or make copy the `.env.example` and rename it to `.env`.
The env file should contain one key called `AUTHORIZATION` and you should assign his value with your **Discord Web Authorization Token**.
To get this token, open your Discord App or on the Browser and open the Inspection Page.- To open Inspection Tab on Discord press `CTRL + SHIFT + I`
- To open Inspection Tab on Browser, Press F12There you will click on `Network` tab and filter all `XHR` requests:
![network tab](.github/firstStep.png)
After that you will select any request (red square) to get the Authorization Header:
![network tab](.github/secondStep.png)
If you got your Authorization Token, put it on your `.env` file and you should see something like:
#### User ID
Go to your Discord Settings and enable the **Developer Mode**.
![img.png](.github/thirdStep.png)After that, send any message in any chat on your Discord account and click with the Right button and select the **Copy ID* option.
![img.png](.github/fourthStep.png)
If you paste (CTRL + V) some numbers should appears and should be like: **866058219859214336**.
Your env should have this two tokens to run the project.
```dotenv
USER_ID=866058219859214336
AUTHORIZATION="ODY2MDU4MjE5ODU5MjE0MzM2.xxxxx.6fazt4YSRCQ6vlWMJwEY7pO5hUM"
```## Usage
To start the project, run the command below and select which server/channel you want to retrieve.
```bash
php artisan ripper:start
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
[MIT](https://choosealicense.com/licenses/mit/)