Skip to content

miguelggcc/megabot

Repository files navigation

Mega Downloader Discord Bot

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.

---

Installation and Deployment

Set Up Environment Variables:

  • Create a .env file in the project directory.

  • Add your Discord bot token, Mega API key and desired download directory to the .env file:

    TOKEN=your_discord_bot_token
    API_KEY=your_mega_api_key
    DOWNLOADS_DIR=downloads_directory
    

Build the Docker Image:

docker-compose up --build

Usage

  1. Invite the Bot to Your Server:

  2. 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.

License

This project is licensed under the MIT License.

About

Discord bot for easy downloads from mega.nz

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published