4.0.0 • Published 1 year ago

@lucas-bortoli/libdiscord-fs v4.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

libdiscord-fs

Quickly share files and store them on Discord

Install

$ npm install @lucas-bortoli/libdiscord-fs

Usage

libdiscord-fs Command Line Interface

Commands are given as command line arguments. For example:

    $ node index.js --upload-file=/mnt/c/file.dat:/uploads/file.dat --ls=/uploads/

    First, it uploads the local file /mnt/c/file.dat to /uploads/file.dat in the server.
    Then, it lists the /uploads directory.

Available commands:
    --upload-file=LOCAL:REMOTE
            Uploads a file to the server.
    --download-file=LOCAL:REMOTE
            Downloads a file from the server.
    --ls=DIRECTORY,   --readdir=DIRECTORY
            Lists the files in a given directory.
    --rm=PATH
            Deletes a file or an entire directory.
    --mv=FROM:TO,     --rename=FROM:TO
            Move/rename a file or directory.

All local paths SHOULD be absolute.
All remote paths MUST be absolute.

The environment variable WEBHOOK must be set to the Discord webhook url where files will be sent to, e.g:
    $ export WEBHOOK="https://discord.com/api/webhooks/854112906251402616/KBd5RggV22hYTggRpLo5WyfMey9VHABlu7cZ8l7EhGt6GsjiuPgqh2negcHW08i7RV2f"

libdiscord-fs (c) 2022 Lucas Bortoli
4.0.0

1 year ago

3.1.0

2 years ago

3.0.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.5.4

2 years ago

2.5.3

2 years ago

2.5.6

2 years ago

2.5.5

2 years ago

2.3.91

2 years ago

2.3.9

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.4

2 years ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago