Learn to create and host Discord bots on Square Cloud. Complete tutorial with configuration, deployment, and practical examples in Node.js and Python.
Application Creation
Authentication Token Generation
Privileged Intents Activation
index.js
) and add the following code to create a basic Discord bot:requirements.txt
or package.json
file, but do not include files like __pycache__
or node_modules
. You can get more information about unnecessary files during hosting at automatic-file-deletion-when-deploying-an-application-on-squarecloud.
client_id
in the URL should be replaced with your bot’s actual ID. The permissions
value may also need to be adjusted based on the permissions you want your bot to have.
Now, to test if everything is working, execute the following command on your server: !hello
.