Overview
The SkyTeam ROBLOX Discord bot provides community management features, channel setup automation, and real-time notifications for airlines and passengers.Bot Setup
The bot is built with discord.js and discordx:apps/client/src/index.ts
Prefix Commands
Use
st! prefix for simple text commandsSlash Commands
Modern Discord interactions with
/ commandsBot Initialization
The bot sets up on startup:apps/client/src/index.ts
Custom Status
The bot displays a helpful status message guiding users to DM for assistance.
Commands
Ping Command
Test the bot’s responsiveness:apps/client/src/commands/public/ping.ts
Ephemeral Responses
The ping command uses ephemeral messages that only the command user can see.
Setup Channel Command
Automatically configure server channels with branded content:apps/client/src/commands/private/setupchannel.ts
Administrator Only
The setupchannel command requires Administrator permissions for security.
Portal Channel Setup
The portal channel includes:- Community safeguarding rules: 7 comprehensive rules for maintaining a safe environment
- Discord TOS enforcement: Link to Discord’s Terms of Service
- Social media links: Discord, Twitter, ROBLOX group, and fact sheet
- Media galleries: Branded images and banners
- Welcome message: “Caring more about you” commitment
Example Rules
Interactive Components
The bot uses Discord’s modern component system:Text Displays
Rich text content with markdown formatting
Media Galleries
Image carousels and branded visuals
Buttons
Link buttons for external resources
Separators
Visual dividers for content organization
Error Handling
The bot includes comprehensive error handling:apps/client/src/index.ts
User-Friendly Errors
Users see friendly error messages while detailed logs are captured for debugging.
Message Commands
The bot also supports prefix-based commands:apps/client/src/index.ts
st! prefix for simple text commands.
Environment Setup
Required environment variables:Security
Never commit your bot token to version control. Use environment variables.
Bot Login
apps/client/src/index.ts
Command Structure
Commands are organized by access level:commands/public/- Commands all users can accesscommands/private/- Admin-only commands
Best Practices
Use Ephemeral
Use ephemeral replies for commands that don’t need to be public
Defer Long Operations
Defer replies for operations that take longer than 3 seconds
Permission Checks
Always verify permissions for sensitive commands
Error Handling
Implement try-catch blocks for all command handlers
Next Steps
ROBLOX Integration
Learn how the bot connects with ROBLOX games