Scratch for Discord
Web-ApplicationDiscord Server
  • 🏠Home
  • πŸ‘‹Introduction
    • About Scratch for Discord
  • πŸŽ“Tutorial
    • Block Usage
    • Bot Setup
    • Hosting
    • Slash Commands
  • 🧰Toolbox
    • πŸ’ΌBase
    • ⚽Basic
      • Text
      • Math
      • Colors
    • πŸ”©Functions
      • Logic
        • If logic
        • State Machines
      • Loops
      • Lists
      • Variables
        • Var
        • Let and Const
      • Functions
      • Collections
      • Buffers
      • Objects
      • πŸ’ΎDatabase
      • πŸ“‚Files
        • πŸ–ΌοΈImages
          • πŸ“¬Member Cards
      • πŸ”‘Securing
    • πŸ–₯️Discord
      • 🎨Embeds
      • πŸ“»Interactions
        • βš’οΈSlash
          • πŸ“€Actions
            • 🧱Stacks
            • πŸ”ŽReporters
          • πŸ“₯Events
        • Button
        • Menu
        • Context menu
        • Forms
      • πŸ₯Music
        • πŸ“œMusic Lyrics
      • πŸ—„οΈServers
        • πŸ˜€Emojis & Stickers
          • πŸ“€Actions
          • πŸ“€Events
        • πŸ”°Roles
          • πŸ“€Actions
            • 🧱Stacks
            • ❔Booleans
          • πŸ“€Events
        • πŸ—“οΈSchedule events
          • πŸ“€Actions
          • πŸ“€Events
        • πŸ“ΊChannels
          • πŸ“€Actions
          • πŸ“₯Events
        • πŸ’¬Messages
          • πŸ“€Actions
            • πŸ“Messages
            • πŸ“’Threads
            • πŸ”—Webhooks
            • πŸ₯³Reactions
          • πŸ“₯Events
          • πŸ”ŽReporters
            • πŸ“ŒMessage Context
        • πŸ‘₯Members
          • πŸ“€Actions
          • πŸ“₯Events
            • πŸ“­Leave
    • πŸš€Applications
      • πŸ“ŠCharts
    • 🌐Websites
      • Dashboard
  • πŸ–₯️Interface
    • βš™οΈSettings
    • ⌨️Hotkeys
    • ▢️Download & Run
    • πŸ–‡οΈGit
  • πŸͺ„Advanced
    • Custom Code
  • πŸ”—Links
    • πŸ“¦Packages
    • ❔FAQ
    • Web-Application
    • Discord Server
    • Source Code
Powered by GitBook
On this page
  • Desktop and android app
  • How to Hide token in Replit?
  • My bot donΒ΄t want to go on
  • Still donΒ΄t wanna go on?
  • Hosting bot 24/7
  • Exporting code not working
  • Which host do I use?
  • Unexpected token
  • Unexpected end of JSON input
  • Unexpected string in JSON at position
  • Commands
  • Kick & Ban
  • Specific Channel
  • Where are forum blocks?
  • How to do Duration?
  • How to use custom Emojis?
  • Slash Commands

Was this helpful?

Edit on GitHub
  1. Links

FAQ

PreviousPackages

Last updated 1 year ago

Was this helpful?

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 .

How to Hide token in Replit?

My bot donΒ΄t want to go on

Make sure to follow everything in Bot Setup and Hosting

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

  1. Add a new monitor with method Http(s)

  2. 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?

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

Specific Channel

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

go to

You can Either use , , ,

Frequently asked questions about slash commands are here

πŸ”—
❔
https://uptimerobot.com/
https://replit.com/
https://railway.app/
https://client.dishost.xyz/
https://www.cyclic.sh/
πŸ‘₯Members
πŸ“ΊChannels
https://scratch-for-discord.com/
Hosting
FAQ
Easiest way to host your bot
Your bot link is a link of page it will create