# Introducción

Esta librería sirve para obtener información de la página fácilmente con NodeJS.

Se puede obtener la información de un bot mediante su ID y si un usuario ha votado a un bot en concreto.

Para empezar a utilizar esta librería es tan fácil como instalarla en tu carpeta.

```bash
npm i dthings.js
```

Te incluímos varios ejemplos de la librería aqui:

{% embed url="<https://github.com/DiscordThings/dthings.js/blob/master/tests/checkVote.js>" %}
Código para comprobar si un usuario ha votado a un bot.
{% endembed %}

{% embed url="<https://github.com/DiscordThings/dthings.js/blob/master/tests/getTotalVotes.js>" %}
Código para mostrar la cantidad de votos que ha tenido un bot.
{% endembed %}


---

# Agent Instructions: 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://dthings.js.org/introduccion.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.
