# Cloud

### **Overview**

Welcome to **Cloud Bot**! This bot allows you to store, manage, and access your personal cloud storage directly via Discord. With Cloud Bot, you can upload, move, rename, and delete files securely. Each cloud database is linked to your Discord account, ensuring private and permanent access to your stored files.

***

## **Key Features**

* **Personal Cloud Storage**: Each user has their own secure and private cloud space.
* **Flexible Uploading**: Upload files up to **500 MB** (Cloud+ & Cloud Pro) or **25 MB** (Cloud Free).
* **File Management**: Move, rename, delete, and organize your files easily.
* **Security & Privacy**: Cloud+ and Cloud Pro users can upload private files, and **Cloud Pro** users can encrypt their files for added security.
* **Subscription System**: Unlock **Cloud+** and **Cloud Pro** for enhanced storage, security, and speed.

***

## **Available Commands**

### **1. `/my_db`**

* **Function**: Displays the contents of your cloud, including all files and folders.
* **Usage**: Simply run `/my_db` to see an organized list of your files and directories.

***

### **2. `/upload`**

* **Function**: Upload a file to your personal cloud storage.
* **Options**:
  * **`file`** *(Required)*: The file to upload.
  * **`directory`** *(Optional)*: Specify a folder where the file will be stored.
  * **`private`** *(Cloud+ & Pro only)*: Allows users to set their file as private.
  * **`encrypt`** *(Cloud Pro only)*: Choose encryption (`Auto` or `Custom Key`).
  * **`sse_c_key`** *(Cloud Pro only, required for custom encryption)*: Define a custom encryption key.

📌 **Notes:**

* Cloud Free users' uploads are **automatically public**.
* Cloud+ and Cloud Pro users can upload files privately.
* Cloud Pro users can encrypt files using **automatic encryption** or a **custom key**.

**Example:**

* Upload `image.png` to a folder named `Documents`:

  ```
  /upload file:image.png directory:Documents
  ```
* Upload a private, encrypted file (Cloud Pro only):

  ```
  /upload file:secret.pdf private:Yes encrypt:Auto
  ```
* Upload a file with **custom encryption** (Cloud Pro only):

  ```
  /upload file:secure.docx private:Yes encrypt:Custom Key sse_c_key:MySecretKey123
  ```

***

### **3. `/move_file`**

* **Function**: Move a file into a specific folder.
* **Options**:
  * **`file_name`** *(Required)*: The name of the file to move.
  * **`target_directory`** *(Required)*: The destination directory (use `root` to move to the main directory).

**Example:**

* Move `notes.txt` to the `Work` folder:

  ```
  /move_file file_name:notes.txt target_directory:Work
  ```
* Move `project.zip` back to the root directory:

  ```
  /move_file file_name:project.zip target_directory:root
  ```

***

### **4. `/delete`**

* **Function**: Delete a file or a directory from your cloud.
* **Options**:
  * **`type`** *(Required)*: Choose `File` or `Directory`.
  * **`name`** *(Required)*: The name of the file or directory to delete.

📌 **Note:** Deleting a directory will **remove all its files**.

**Example:**

* Delete a file named `old_data.csv`:

  ```
  /delete type:File name:old_data.csv
  ```
* Delete a directory called `Screenshots`:

  ```
  /delete type:Directory name:Screenshots
  ```

***

### **5. `/rename`**

* **Function**: Change the name of a file or directory.
* **Options**:
  * **`type`** *(Required)*: Choose `File` or `Directory`.
  * **`old_name`** *(Required)*: The current name.
  * **`new_name`** *(Required)*: The new name.
  * **`directory`** *(Optional)*: Specify the directory (only needed if the file is not in the root folder).

**Example:**

* Rename `report.docx` to `final_report.docx`:

  ```
  /rename type:File old_name:report.docx new_name:final_report.docx
  ```
* Rename a directory `Trips` to `Vacation` inside `Photos`:

  ```
  /rename type:Directory old_name:Trips new_name:Vacation directory:Photos
  ```

***

### **6. `/redeem`**

* **Function**: Redeem a key to upgrade to **Cloud+** or **Cloud Pro**.
* **Options**:
  * **`key`** *(Required)*: The subscription key to activate.

**Example:**

```
/redeem key:ABCD-EFGH-IJKL
```

📌 **Note:** After activation, your plan will be updated instantly.

***

## **Additional Notes**

* **Upload Limits:**
  * Cloud Free: **Max 25 MB per file**
  * Cloud+ & Cloud Pro: **Max 500 MB per file**
* **Privacy:**
  * Cloud Free: **Files are always public**
  * Cloud+ & Cloud Pro: **Files can be set as private**
* **Encryption (Cloud Pro only):**
  * **Auto Encryption:** Secure encryption managed by the system.
  * **Custom Key Encryption:** Define your own encryption key for extra security.

***

## **Conclusion**

Cloud Bot provides a secure and user-friendly way to manage personal cloud storage directly from Discord. Whether you need **basic storage** (Cloud Free), **advanced management & privacy** (Cloud+), or **top-tier security with encryption** (Cloud Pro), there's a plan for everyone!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://av0.gitbook.io/av/bots/cloud.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
