Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1018 Bytes

File metadata and controls

19 lines (13 loc) · 1018 Bytes

Discord Bot with Interactive Components

This project sets up a Discord bot utilizing the Discord.js library, providing interactive components such as buttons, sections, and attachments. The bot is equipped to register and handle slash commands and demonstrates how to structure replies with dynamic UI elements.

Features

  • Command Registration: Automatically registers slash commands (/test) with the Discord API.
  • Interactive UI Components: Creates sections with buttons and text displays.
  • File Attachments: Responds with a file (NiNJA.xex) and integrates it into the message.
  • Environment Variables: Uses .env for secure storage of TOKEN and CLIENT_ID.

Requirements

  • Node.js: Ensure you have Node.js installed.
  • Discord.js v14 or later: The bot relies on the latest version for advanced features.
  • Dotenv: To manage environment variables securely.

feel free to use this as a example to help learn or create

example