This Discord bot makes it possible to download files or folders from mega.nz using Mega SDK. It supports single-file downloads as well as batch downloads of specified items from folder links. The bot is designed for Docker deployment.
---Set Up Environment Variables:
-
Create a
.envfile in the project directory. -
Add your Discord bot token, Mega API key and desired download directory to the
.envfile:TOKEN=your_discord_bot_token API_KEY=your_mega_api_key DOWNLOADS_DIR=downloads_directory
Build the Docker Image:
docker-compose up --build-
Invite the Bot to Your Server:
- Go to the Discord Developer Portal.
- Generate an OAuth2 URL for your bot and invite it to your server.
-
Commands:
!dl [mega link]: Download a single file from the link. If the link is for a folder, the user can choose which to download.!ls: List files from current session.!cancel: Close current session.
This project is licensed under the MIT License.
