Documentation Index
Fetch the complete documentation index at: https://docs.shardcloud.app/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
This guide covers creating and deploying Discord bots on Shard Cloud with examples in both Node.js and Python.Creating a Discord Bot Application
Create Application
Go to the Discord Developer Portal and click “New Application”. Give your bot a name and create it.
Get Bot Token
Navigate to the “Bot” tab and click “Reset Token” to generate your bot token. Copy and save it securely.
Creating Your Bot
- Discord.js (Node.js)
- Discord.py (Python)
Inviting Your Bot
- Go to the Developer Portal
- Select your bot → OAuth2 → URL Generator
- Check “bot” scope
- Select required permissions
- Copy and open the generated URL to invite your bot
Deploying
Prepare Your Files
Ensure you have:
- Your bot code file
package.json(Node.js) orrequirements.txt(Python).shardcloud
Upload to Shard Cloud
Go to Shard Cloud Dashboard and upload.
Testing
After deployment, test your bot by sending!ping in a server where your bot is present. It should reply with “Pong!”.
Additional Resources
Troubleshooting
Bot not responding
Bot not responding
- Verify your bot token is correct
- Check that intents are enabled in Developer Portal
- Review logs in the Shard Cloud dashboard
Missing permissions
Missing permissions
Re-invite your bot with the necessary permissions enabled.