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
  • Testing
  • Hosting
  • Hosting on Replit
  • process.env
  • Possible Repercussions of Security Negligence

Was this helpful?

Edit on GitHub
  1. Tutorial

Hosting

How to host my bot?

PreviousBot SetupNextSlash Commands

Last updated 1 year ago

Was this helpful?

Once you have both Blocks and Your bot prepared, you are ready for hosting

Testing

For only testing your new command if itΒ΄s working, you can use build in hosting, you can find this in the Web app on right-side of navigation bar next to settings button.

This is the token you use from step 7. of Bot Setup

Hosting

You already made some working application and want to host it? Sure

You can use Many websites providing free hosting

Hosting on Replit

  1. Create a new Repl

  2. Select Language as Node.js & name it whatever you want

  3. Here you put All of your exported files, export is not the .s4d file

4. Make sure to put all files from the folder and you are done. You can now run your bot!

process.env

Congrats you have safely stored your token and are ready to continue coding!

Possible Repercussions of Security Negligence

  • Spy listening on the bot's reading data

    • Security negligence about sensitive user data is illegal in the EU

  • Malicious usage of the bot

    • Nuke of every server the bot is in

    • Making the bot and the bot's account owner permanently banned from Discord

One of the user friendly and basic one is

or you can use websites like or

If a bot's repository is on a free plan, your code is forced to be open-source

If you don't use , your token is usable by anyone, read Possible Repercussions of Security Negligence if you donΒ΄t want to use them

Secrets are and they are unvisible to others.

πŸŽ“
replit.com
railway
heroku
repl.it
environment variables (.env)
process.env
5KB
test_bot.zip
archive
You can use this if you want
Example how to use environmental variables on replit
Use this block in category
BASE