# Step 6 (Optional): Rewrite & Revise

So, you've got your bot onto Discordbots.org, or your bot is "complete" by your standard. Great job! Now, at this point, it's a good idea to go back to your bot and start looking at code that could be improved. Could you have combined expressions/simplified logic? Is there unused variables in your code? Look through *all* of it again! If you are changing most of your bot's code, this is what most bot developers would call a "rewrite".

## What's a "rewrite"?

Well, a rewrite is simply refactoring your bot's code to make it look and work much different than the previous version of your bot. For example, if you are coding in JavaScript and are changing to TypeScript, that is a rewrite of your bot's code since you are integrating another "language" (TS is a superset of JS. This would not be the case if you were rewriting your bot from JS to Python).

## Revisions

Of course, you don't have to rewrite your bot every time you change your code. Revisions are just small changes here and there.


---

# 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://vinniehat-1.gitbook.io/guide-to-making-your-own-discord-bot/guide/step-6-optional-rewrite-and-revise.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.
