Do I really need to explain???
The code is probably a bit messy, but it works so :)
- Clone the repo
git clone https://github.com/spinfal/discord-cdnlink-scraper.git
- Install dependencies
pnpm install
-
Create a Discord bot here: https://discord.com/developers/applications
a. Enable the option shown in the image below
b. Copy the token and invite the bot to your server using this link (add your bot's client ID): https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=274878008320&scope=bot -
Duplicate config.json.example and rename it to
config.json
and fill in the values -
Run the bot
pnpm start
- Run the command
.scrape [videos only true/false] [amount of messages to scrape].
Both are optional, and are not needed
Open an issue or pull request and I'll take a look and see if I can add it.