Complete tutorial: how to create and host an X bot on Square Cloud. Learn configuration, Node.js implementation, deployment and advanced automation.
Accessing the Developer Portal
Project Creation
Application Setup
API Keys Generation
Permissions Configuration
Access Tokens Generation
Credentials Verification
.env
file to store your credentials securely:index.js
file with the bot’s base structure:squarecloud.app
file is the core configuration of the application, defining key parameters such as the main file, resource allocation, runtime versions and important project metadata.squarecloud.app
file in your project root:
API_KEY
: Your X API keyAPI_SECRET_KEY
: Your X API secret keyACCESS_TOKEN
: Your access tokenACCESS_TOKEN_SECRET
: Your access token secret