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
  • Token
  • Webserver
  • Process.env
  • When bot is connected
  • Bot information
  • Advanced

Was this helpful?

Edit on GitHub
  1. Toolbox

Base

PreviousSlash CommandsNextBasic

Last updated 1 year ago

Was this helpful?

Token

Using this block, you can connect your script to Discord, this block is required

To know how to , check

Webserver

Using this block, you can setup a basic HTML site for uptime apps to keep your replit 24/7.

screenshot

Process.env

When bot is connected

When the bot turns on, the code will be ran. Perfect for looping or setting a database.

Bot information

To get information about a bot as a user, use this block!

S4D // username of bot
1 //server count
6Mon Oct 17 2022 20:13:09 GMT+0000 (Coordinated Universal Time) // boot time
2 //in seconds, time from start

Advanced

When the code runs, simply you add script without any event.

Async, will make your part of code asynchromous, you can use it for example with Functions

to add delay.

Shutdown the bot - the name tell it all

Output
73.62482369534555

For more information read

Some operating system information, tells you about specs of server the bot is running on.

🧰
💼
Example of using this event
Get the Token
get a token
process.env