35 lines
864 B
Markdown
35 lines
864 B
Markdown
# Basic script to upload to litterbox.catbox.moe
|
|
|
|
## Description
|
|
|
|
[Litterbox.catbox.moe](https://litterbox.catbox.moe) is a publicly accessible temporary file host
|
|
|
|
This script provides a minimalistic and simplified way to interact with its API and upload a file for a specified amount of time
|
|
|
|
## Setup
|
|
|
|
Place the script somewhere within your path, you can find this by running:
|
|
|
|
``` bash
|
|
echo "$PATH"
|
|
```
|
|
|
|
After this make the script executable:
|
|
|
|
``` bash
|
|
chmod u+x
|
|
```
|
|
|
|
## Usage
|
|
|
|
Type catboxuploader. then the name of the file after, for example:
|
|
|
|
``` bash
|
|
catboxuploader 123.png
|
|
```
|
|
|
|
After this you will be prompted to input the amount of hours you want the file to be uploaded for, (1, 12, 24 or 72)
|
|
|
|
Finally once the file has uploaded a shareable link will be returned in the terminal
|
|
|
|
The script checks that the file exists and only one argument is provided |