Crates.io | distore |
lib.rs | distore |
version | 0.3.0 |
source | src |
created_at | 2024-08-31 19:22:26.707907 |
updated_at | 2024-10-19 20:34:28.85487 |
description | Utility to use Discord as cloud storage |
homepage | https://github.com/obvMellow/distore |
repository | https://github.com/obvMellow/distore |
max_upload_size | |
id | 1359161 |
size | 125,895 |
Utility to use Discord as cloud storage.
First, make sure you have cargo installed.
cargo --version
You should be getting no errors. If not you can install cargo from https://www.rust-lang.org/tools/install
Then, you can simply install using cargo
cargo install distore
Make sure you have .cargo/bin
in your PATH
For Linux:
export PATH=$HOME/.cargo/bin:$PATH
For Windows:
setx /M PATH "%PATH%;%HOMEPATH%/.cargo/bin"
Open a new shell and run the following command. If everything went right you shouldn't get any errors
distore --version
First of all, you need to create a Discord bot.
Go to the Discord Developer Portal
distore config token <TOKEN> --global
distore config channel <CHANNEL_ID> --global
Now, you're ready to use Distore.
You can upload a file with the following command:
distore upload <path/to/file>
List all the files you've uploaded:
distore list
And download a file:
distore download <MESSAGE_ID>
You can set a different token and channel for the directory you're in. Just don't set the --global
flag in the config command
distore config token <TOKEN>
distore config channel <CHANNEL_ID>
For all the commands:
distore --help