> For the complete documentation index, see [llms.txt](https://translatorbot.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://translatorbot.gitbook.io/home/commands.md).

# Commands

See below how to use my commands.

{% hint style="info" %}
To all commands is required the bot prefix setted on your server
{% endhint %}

## help

It show a guide (help message):

```javascript
help
```

The result will be:

![](https://935112357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJUarBdut3anEMehPKY%2F-MNoK9EJuIUM7csW7kPy%2F-MNoKUzgMrvtzYnle2e-%2Fimagem_2020-12-05_161659.png?alt=media\&token=bed4796b-46cc-430c-a0e6-88e108fc2b70)

## translate

It is used to translate sentences.&#x20;

```javascript
translate <langFrom-code> <langTo-code> <text>
```

If you want to translate from English to Portuguese, for example:

```javascript
translate en pt Hey there!
```

The result will be:

## t

It is a quick way to translate. Only to another language.

```javascript
t <lang-code> <text>
```

For example, if you want to translate from main language (english, in this case) to Portuguese quickly:

```javascript
t pt Hey there!
```

Result:

![](https://935112357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJUarBdut3anEMehPKY%2F-MNpfzFBF5mZeBuCmgD9%2F-MNpglONGH-Xyn9qgsdg%2Fimagem_2020-12-05_223817.png?alt=media\&token=4eea5473-8d1e-4c59-9de5-2312c79b4e88)

## tm

Is a function to translate from a language to multiple languages in the same time. For now, I can translate to 2 different languages per request.

```javascript
tm <language1> <language2> <text>
```

For example, if you want to translate from english, in this case (the bot will detect what language is) to portuguese and spanish:&#x20;

```javascript
tm pt es Hey there!
```

Result:

![](https://935112357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJUarBdut3anEMehPKY%2F-MTn6JzgihW9pVnzYCp4%2F-MTn9MmeHI5iyj-2tIbs%2Fimagem_2021-02-18_002256.png?alt=media\&token=8dfcab6f-d05e-4819-bed4-f48177b63b3c)

### What is "lang code"?

Is a code to refer a language. So, the code of English is **en**, of Portuguese is **pt**, of Spanish is **es**...

See the full list of "lang code" [here](/home/languages.md).

## setprefix

To change the bot prefix on your server, use the command:

```javascript
setprefix <newPrefix>
```

{% hint style="warning" %}
&#x20;Available only to the server admins
{% endhint %}

## setlanguage

To change the bot language on your server, use the command:

```
setlanguage <language>
```

### Languages available to set

| Language   | Command                  |
| ---------- | ------------------------ |
| English    | `setlanguage english`    |
| Portuguese | `setlanguage portuguese` |

For now, the only languages available to set is **English** and **Portuguese**. To contribute with the translations, visit our [Crowdin](https://crowdin.com/project/bottranslator) page.

{% hint style="warning" %}
&#x20;Available only to the server admins
{% endhint %}
