Download a desired number of pictures previously posted in a Discord channel.
Before you can run you must configure your .env
file.
- Create a discord bot here, give it Administration permissions and add to your server.
- Open
example.env
and rename the file to.env
. - Copy the token from the bot page and add it to your
.env
file asDISCORD_BOT_TOKEN
. - Add the channel ID of the channel you wish to download from as
CHANNEL_ID
.
Assuming you are in the correct directory and have NodeJS/NPM installed on your machine, run the following commands:
npm install
npm start