> For the complete documentation index, see [llms.txt](https://enoch.code4tomorrow.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enoch.code4tomorrow.org/commands-reference/fun.md).

# Fun

Commands inside of the fun cog

| Command    | Usage                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hello      | +hello                     | <p>Greets the user with a random greeting</p><p></p><p><strong>Aliases:</strong> hi</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| dice       | +dice \<die\_string>       | <p>Rolls a certain number of n-sided dice. Displays the result of each roll and also the sum of all of the rolls.</p><p></p><p><strong>Arguments</strong></p><p><code>die\_string</code> is \[number of die to roll]d\[number of sides on each die]. For example, 5d6 means rolling 5 six-sided die.</p><p></p><p><strong>Note:</strong> This command will not work for over 25 dice.</p><p></p><p><strong>Aliases:</strong> roll</p><p></p><p><strong>Example:</strong> +dice 5d6</p>                                                                                                                                                                                                                        |
| echo       | +echo \<message>           | <p>Repeats a message back to the user and deletes the original message.</p><p><br><strong>Arguments</strong></p><p><code>message</code> is the message to echo back<br></p><p><strong>Aliases:</strong> say</p><p></p><p><strong>Example:</strong> +echo hello world</p>                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| enoch      | +enoch                     | Sends one of Enoch's signature quotes from Agents of SHIELD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| setscore   | +setscore \<user> \<score> | <p>Sets the score of the mentioned user to exactly the score provided.</p><p></p><p><strong>Arguments</strong></p><p><code>user</code> - the user's mention (use @user)</p><p><code>score</code> - an integer greater than or equal to 0 to be used as the user's new score<br><br><strong>Checks</strong></p><p>Only users with administrator permissions can use this command.</p><p></p><p><strong>Example:</strong> +setscore @JohnDoe 25</p>                                                                                                                                                                                                                                                             |
| givepoints | +givepoints                | <p>Gives mentioned user the requested points by adding the score provided with their current score and updating the scoreboard with that sum. To take away points, use a negative score.</p><p></p><p><strong>Arguments</strong></p><p><code>user</code> - the user's mention (use @user)</p><p><code>score</code> - an integer of how many points to be added</p><p></p><p><strong>Note:</strong> The user's score cannot go below 0 points.</p><p></p><p><strong>Aliases:</strong> givepts</p><p></p><p><strong>Checks</strong></p><p>Only users with the C4T, Teacher, Developer, and/or Enoch Bot Developer role can use this command.</p><p></p><p><strong>Example:</strong> +givepoints @JohnDoe 25</p> |
| viewdb     | +viewdb                    | <p>Sends the whole SQL database as a string. Just in case you're debugging something.</p><p></p><p><strong>Checks</strong></p><p>Only users with administrator permissions can use this command.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| myscore    | +myscore                   | Sends the scoreboard page on which the user that called the command's score lies.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| scoreboard | +scoreboard \<page>        | <p>Sends the scoreboard. If a page is provided, it will send the provided page, if that page is a valid page. If that page is an invalid page, it will send the first page.</p><p></p><p><strong>Arguments</strong></p><p><code>page</code> - (optional) the page number of the scoreboard to display</p><p></p><p><strong>Example:</strong> +scoreboard 5</p>                                                                                                                                                                                                                                                                                                                                                |
| cleardb    | +cleardb                   | <p>Clears the score database.<br><br><strong>Aliases:</strong> resetdb, deldb</p><p></p><p><strong>Checks</strong></p><p>Only users with administrator permissions can use this command.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| rmscore    | +rmscore \<user>           | <p>Deletes the given user's score from the score database.</p><p></p><p><strong>Arguments</strong></p><p><code>user</code> - the user's mention (use @user)</p><p></p><p><strong>Aliases:</strong> removescore, deletescore, delscore</p><p></p><p><strong>Checks</strong></p><p>Only users with administrator permissions can use this command.</p><p></p><p><strong>Example:</strong> +rmscore @JohnDoe</p>                                                                                                                                                                                                                                                                                                 |
| version    | +version                   | Sends the current version of Enoch bot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |


---

# 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, and the optional `goal` query parameter:

```
GET https://enoch.code4tomorrow.org/commands-reference/fun.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
