A small discord bot which saves some attachments in a given channel to a local folder.
- Download this repository
- Go in to the downloaded folder
- Run
npm i
- Rename
.env.example
to.env
- Configure variables in the
.env
file
- TOKEN - Your discord bot token. Make sure the bot has
MESSAGE CONTENT INTENT
turned on in the discord developer portal. - SAVE_DESTINATION - Where downloaded files will be saved.
- CHANNEL_ID - In which channel to look for file uploads.
- EXPECTED_FILE_TYPE - What files to save. Exampl values:
png
,jpg
,zip
,txt
. - SAVE_WRONG_FILE_TYPE - Boolean. EXPECTED_FILE_TYPE Still has to have something in it!!!