A discord bot that downloads images and videos from a selected channel. You have to be the admin of the server to use this bot.
jpg, jpeg, png
mp4, avi, mov
Install requirements for the bot.
poetry install
Setup Discord Bot
1- You need to create discord application in here https://discord.com/developers/applications
2- Under Bot
tab, add bot.
3- You can use this link for add bot to your server. Simply copy your Client ID in OAuth2
tab and paste it into YOUR_CLIENT_ID
https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID
&permissions=68672&scope=bot
OR
You can munually select permisions.
In OAuth2
tab, select bot
for Scopes. Then, add bot permissions below.
- View Channels
- Send Messages
- Read Message History
- Add Reactions
4- Create a file named .env
in the root folder of your project.
5- Copy your bot's TOKEN and save it in the .env
file as shown below. (without quotes)
DISCORD_TOKEN=YOUR_TOKEN
cd .\discord_media_downloader\
poetry run python .\bot.py
- Default prefix:
>
>ping # Return bot's latency
>scan <limit> # Returns stats about messages and download options (default limit 5) (administrator permission needed)