> For the complete documentation index, see [llms.txt](https://doc.ankabot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ankabot.dev/ankabot-touch/commandes-console.md).

# Commandes console

## /clear

Permet de vider le contenu de la console du bot concerné.

## /cmd

Permet d'exécuter une instruction **LUA** sur votre bot, par exemple :

```lua
/cmd global:printSuccess(character:name()) -- Affiche le nom du personnage
/cmd map:changeMap("left")                 -- Change la map vers la gauche
```

{% content-ref url="/pages/-Maww0iRmKqDwLpuC9n4" %}
[Broken mention](broken://pages/-Maww0iRmKqDwLpuC9n4)
{% endcontent-ref %}

## /abortCmd

Permet de mettre fin à l'exécution d'une commande faîte à travers **/cmd**.

## /fight

Ordonne le lancement d'un combat sur la carte.

## /gather

Ordonne la récolte sur la carte.

## /cellid

Affiche l'identifiant de la cellule où le personnage est placé.

## /mapid

Affiche l'identifiant de la carte où se trouve votre personnage.

## /id NOM

Affiche l'identifiant d'un personnage, exemple :

```lua
/id pharwell -- Affiche 41859875638
```


---

# 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://doc.ankabot.dev/ankabot-touch/commandes-console.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.
