Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (45 loc) · 3.31 KB

README-EN.md

File metadata and controls

75 lines (45 loc) · 3.31 KB

Ver em Português

Discloud Bash

Basic command line interface for Windows. So you can use the Visual Studio Code terminal to update your bot on Discloud

_

📦 Operating System Prerequisites

If you are using PowerShell on Windows 10, version 1803 or later, your operating system is already fully compatible with Discloud Bash


📋 Arquivo de configuração

For Discloud Bash to work you need to create a file called discloud.txt in your application's directory, where you will add the Token to access the discloud api and your bot ID.

It is important to respect the standard in which the data is placed from the txt file

Remembering that this token is from the Discloud API and not from your Discord application

image image

🚀 Starting

There are 2 ways to use Discloud Bash

First

The fastest way to use DisCloud Bash is to open your VScode in your Bot folder and create a file called commit.bat, then paste this content here and save.

Once you have done that you can run the command using ./commit.bat or ./commit.bat FolderName in your VScode terminal and the files will be sent to the bot that has the data in discloud.txt

script

🛠️ Configuring Path on Windows

--

Second

Now if you want to install the Script globally on your windows the process will be a little different: First download the install-en.bat program and run it on your machine. After the process, access the C:\Discloud folder, create a file called discloud.bat and put this code here inside and save correctly.

image image image image

At the moment we only have the commit command available in our application.

  • Command structure:

Here <arguments> are optional, while [commands] are mandatory.

discloud [command] <argument>

In the case of the commit, the <arguments> would be the name of the folder or file, but you can leave it empty for the commit to send the files from the root where the command is executed

⚙️ Examples of use

discloud commit FolderName

discloud commit

Developed with ❤️ by Pedro Ricardo 😊