# \[NEW] BDFD x Discord.js Eval

This evaler allows you to eval Discord.js code within BDFD!

{% embed url="<https://bdfddataevaler.rickyjs.xyz>" %}

## How does it work?

* Create an evaler
* Get your evaler link
* Send requests as you please!

## Setting Up Your Evaler:

1. Login with Discord \
   ![](/files/T8xkjIGgjaZfyafSgIFK)
2. Verify your identity by inputting your key\
   ![](/files/5Qsrgtv7oAvT4HgWeOlO)
3. Input your bot token \
   ![](/files/1FfsyfRHPmaaoMF2PecE)
4. Input a secret auth key. **This can be whatever you want! Make it secure as this is how you will reach your evaler. Do not share the key with anyone else**\
   &#x20;![](/files/ydDkgSxir76jsvEPIKwc)
5. Select Intents. **Only select the intents you absolutely need. Privileged Intents (GuildMembers, GuildPresences, and MessageContent) must be activated in the Discord Developer Portal in order for the bot to start.**&#x20;

<figure><img src="/files/MGabeDyu10NfR5QZBRZm" alt=""><figcaption></figcaption></figure>

#### Once your evaler has been submitted, If successful, the bot should automatically start.

<figure><img src="/files/qUFdz5I1qeMZCIN3bwTE" alt=""><figcaption></figcaption></figure>

## How to Eval:

* Copy the link provided on the dashboard.
* Make a POST request to the link `$httpPost[<url>/eval;{"code": "your_code_here"}]`
  * Required Body Parameter: `code` The code to evaluate.
  * Required Header parameter: `auth` The auth token you created
* After sending the request, capture the result using `$httpResult`. This will contain the output from the evaluation process.
* Use `$httpStatus` to determine whether the API request was successful or encountered an error.
  * If the status is `400` (bad request), the API encountered an error. You can debug using `$httpResult[error]`.
  * If successful, the result will be available in `$httpResult[details]`.
* If the API call is successful, you can retrieve the current **API-to-Discord API ping** using `$httpResult[ping]`.

## Management Options:

* Configure - Reconfigure Evaler Settings <mark style="color:yellow;">\[THIS IS NOT READY YET]</mark>
* Delete - Delete the Evaler
* Restart - Restart the Evaler

### Have more questions or need help? Join the Support Server and we'll guide you through!

{% embed url="<https://dsc.gg/ddapi>" fullWidth="false" %}

## Privacy and Security

To run this evaler, we do save the inputted bot tokens in a secure database. The database is obfuscated so not even I can read it.&#x20;

#### We expect all users to adhere to not only Discords ToS, but our own rules as well so we can keep this running.

* The code is processed through malicious check before being executed, if your code flags the check. We will be alerted and may suspend your evaler without notice.
* We **kindly and sternly** ask that you do not abuse this project and ruin it for everyone, meaning I can simply take this down with a click of a button if even one user abuses this.
* Use common sense, treat others as you'd want to be treated.
  * Imagine if someone raided your server, that would hurt right? Don't raid other servers. (It is honestly sad this has to be said.)


---

# 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://dadocs.rickyjs.xyz/djsenv.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.
