Git Product home page Git Product logo

datahoarder's Introduction

Data Hoarder

A bot for hoarding any data from Discord.

Deploy to Heroku Run on Repl.it

Commands

  • /mirror <url> [destpath] - download any URL to a remote destination.
  • /download <url> [destpath] - mirror a direct link.
  • /fshare <url> [destpath] - mirror a file on Fshare.vn.
  • /ytdl <url> - mirror a YouTube video.
  • /list <query> - search for files matching the query.

Getting Started

  • Install Node.js v14+ (for discord.js@13 that uses optional chaining)
  • Set up a bot on Discord.
  • Add the bot to your server.
  • Clone the repo.
  • Create a .env file with the following variables, using the format export VARIABLE_NAME=variable_value, one line per variable:
    • For Discord and the bot:
      • export DISCORD_TOKEN='...': The token of the bot retrieved from Discord.
      • export COMMAND_PREFIX='/': (optional) custom prefix for the commands. Default to /.
      • export COMMAND_SUFFIX='': (optional) custom suffix for the commands. Default to empty string.
      • export COMMAND_MIRROR_ALIASES='': (optional) Space-separated list of aliases for mirror command.
      • export MAX_JOBS=4: (optional) maximum number of jobs to run in parallel. Default to 4.
    • For Rclone:
      • export RCLONE_DRIVE_CLIENT_ID='': (optional) Google's client ID for rclone.
      • export RCLONE_DRIVE_CLIENT_SECRET='': (optional) Google's client secret for rclone.
      • RCLONE_CONFIG_TARGET_TEAM_DRIVE='...': The ID of the shared drive to upload file to.
      • export RCLONE_CONFIG_TARGET_ROOT_FOLDER_ID='': (optional) The ID of the folder to upload file to.
      • export RCLONE_CONFIG_TARGET_TOKEN='': (optional) access token to the target folder.
      • export RCLONE_CONFIG_TARGET_SERVICE_ACCOUNT_FILE='': (optional) path to service account file with access to the target folder.
      • export RCLONE_EXECUTABLE='': (optional) path to custom rclone executable, such as gclone, fclone.
      • export RCLONE_CONFIG_TARGET_SERVICE_ACCOUNT_FILE_PATH='': (optional) path to the folder contains service account files. This setting is used by the variants of rclone.
    • For FShare:
      • export FSHARE_USER_EMAIL='.': VIP email to login.
      • export FSHARE_PASSWORD='': VIP password to login.
    • For Usenet:
      • export USENET_POST_HOST='': Hostname of the news-server to post to.
      • export USENET_POST_PORT='': Port of the news-server to post to.
      • export USENET_POST_USER=''
      • export USENET_POST_PASSWORD=''
      • export USENET_POST_FROM='': The name and email of the poster. Default to "{Discord display name} <{Discord discriminator}@{Guild's name}>"
      • export USENET_POST_GROUPS='alt.binaries.test': Comma-separated group names to post to. Default to "alt.binaries.test".
  • Inside the project, npm install to install dependencies.
  • npm start to start the bot.

DataHoarder should appear on your Discord's roster.

datahoarder's People

Contributors

sntran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.