TomerGamerTV / discord-cdnlink-scraper

A Discord bot that can scrape attachment links from a channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Discord bot that can scrape attachment links from a channel

Do I really need to explain???
The code is probably a bit messy, but it works so :)

Prerequisites

How to use

  1. Clone the repo
git clone https://github.com/spinfal/discord-cdnlink-scraper.git
  1. Install dependencies
pnpm install
  1. Create a Discord bot here: https://discord.com/developers/applications
    a. Enable the option shown in the image below
    Option to Enable: Message Content Intent 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

  2. Duplicate config.json.example and rename it to config.json and fill in the values

  3. Run the bot

pnpm start
  1. Run the command
.scrape [videos only true/false] [amount of messages to scrape].

Both are optional, and are not needed

Want to see features added?

Open an issue or pull request and I'll take a look and see if I can add it.

License

MIT
Made by spinfal

About

A Discord bot that can scrape attachment links from a channel

License:MIT License


Languages

Language:JavaScript 100.0%