# FAQ

## Desktop and android app

Support for both of these was stopped. It was only that it runed the browser in the app and you should just use <https://scratch-for-discord.com/>.

## How to Hide token in Replit?

{% content-ref url="../tutorial/hosting" %}
[hosting](https://docs.scratch-for-discord.com/use/tutorial/hosting)
{% endcontent-ref %}

## My bot don´t want to go on

Make sure to follow everything in [bot](https://docs.scratch-for-discord.com/use/tutorial/bot "mention") and [hosting](https://docs.scratch-for-discord.com/use/tutorial/hosting "mention")

Try typing `kill 1` in shell

Try Forking the code to new replit

### Still don´t wanna go on?

Check if you are receiving any errors.

Most common error is `cannot find module [MODULE_NAME]` for this just run `npm i [MODULE_NAME]` in the shell.

## Hosting bot 24/7

<figure><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FYoegvzlTzJAMMaY2Py4b%2Fscreenshot%20(95).png?alt=media&#x26;token=fd477333-87fd-45e9-aa7c-a7b27c0fd5ed" alt=""><figcaption><p>Easiest way to host your bot</p></figcaption></figure>

1. go to <https://uptimerobot.com/>
2. Add a new monitor with method Http(s)

   <figure><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FM1buqOphlhS3tNy4EDj7%2Fimage.png?alt=media&#x26;token=70acb06b-67f0-47d9-8785-6278d917ce26" alt=""><figcaption><p>Your bot link is a link of page it will create</p></figcaption></figure>
3. Your bot should stay alive!

## Exporting code not working

Open a Developer console and check for errors, you can open it by pressing F12

## Which host do I use?

You can Either use <https://replit.com/>, <https://railway.app/>, <https://client.dishost.xyz/>, <https://www.cyclic.sh/>

## Unexpected token

Looks like you forgot to fill some value?

### Unexpected end of JSON input

There are missing brackets { or } in your .json file

### Unexpected string in JSON at position

You are missing a comma somewhere in your .json file

## Commands

### Kick & Ban

{% content-ref url="../toolbox/discord/servers/members" %}
[members](https://docs.scratch-for-discord.com/use/toolbox/discord/servers/members)
{% endcontent-ref %}

### Specific Channel

{% content-ref url="../toolbox/discord/servers/channels" %}
[channels](https://docs.scratch-for-discord.com/use/toolbox/discord/servers/channels)
{% endcontent-ref %}

### Where are forum blocks?

Discord.js Don´t allows us to make them.

### How to do Duration?

if you want something like 1m (1 min), 2h (2 hours)

You can do it using command handler (examples)

and then multiplying the value with seconds

### How to use custom Emojis?

Input their ID or for message:

non animated: <:ID:NAME>\
animated: \<a:ID:NAME>

## Slash Commands

Frequently asked questions about slash commands are here [#faq](https://docs.scratch-for-discord.com/use/tutorial/slash-commands#faq "mention")


---

# 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://docs.scratch-for-discord.com/use/links/faq.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.
