Discord Bot

MoMo_Bot

cablemomo2027 · ส่วนตัว

MoMo_Bot
ภาพรวมอ่านจบใน 30 วินาที

สรุปโปรเจกต์

ภาพรวม

MoMo Bot คือบอท Discord ที่พัฒนาด้วย Discord.js เพื่อมอบฟีเจอร์ช่วยเหลือและบันเทิงครบวงจรภายในเซิร์ฟเวอร์ โดยรองรับทั้งคำสั่งจัดการเซิร์ฟเวอร์ ระบบเพลงผ่าน Lavalink และคำสั่งสนุกๆ พร้อมระบบซัชคอมมานด์และการแปลหลายภาษา

สรุป 30 วินาที

• ระบบคำสั่งช่วยเหลือและการจัดการเซิร์ฟเวอร์ • ระบบเพลงครบวงจรผ่าน Lavalink พร้อมคิว ลูป และโหมด 24/7 • คำสั่งบันเทิงและซัชคอมมานด์รองรับหลายภาษา

เหมาะกับใคร

เหมาะสำหรับเจ้าของเซิร์ฟเวอร์ Discord, แอดมินชุมชนออนไลน์, และทีมที่ต้องการบอทรวมฟีเจอร์เดียวที่เสถียรและปรับแต่งได้

หมวดหมู่
Discord Bot
ปี
2026
ผู้ดูแลผลงาน
cablemomo2027
รายละเอียดเพิ่มเติมรายละเอียดเชิงลึก

MoMo Bot เป็นบอท Discord ที่พัฒนาด้วย Node.js และ Discord.js รองรับการทำงานผ่าน Slash Commands พร้อมระบบจัดการคำสั่งแบบเป็นหมวดหมู่ ประกอบด้วยคำสั่งยูทิลิตี้สำหรับตรวจสอบสถานะและข้อมูลเซิร์ฟเวอร์ คำสั่งความบันเทิงสำหรับดึงรูปภาพสุนัขและ GIF รวมถึงระบบเล่นเพลงที่รองรับเพลย์ลิสต์และการควบคุมคิวเพลงแบบครบวงจร

ระบบเพลงทำงานร่วมกับ Lavalink ผ่านไลบรารี Riffy เพื่อให้การสตรีมเสียงมีประสิทธิภาพสูง รองรับการเชื่อมต่อช่องทางเสียง การควบคุมการเล่น การวนซ้ำ และโหมด 24/7 พร้อมระบบคูลดาวน์อัตโนมัติเพื่อป้องกันการใช้งานซ้ำซ้อน และรองรับการกำหนดค่าตัวแปรสภาพแวดล้อมผ่านไฟล์ .env สำหรับการจัดการโทเค็นและการเชื่อมต่ออย่างปลอดภัย

โครงสร้างโปรเจกต์ออกแบบมาอย่างเป็นระเบียบแยกโฟลเดอร์คำสั่งและอีเวนต์อย่างชัดเจน ทำให้สามารถพัฒนาต่อยอดหรือปรับแต่งฟีเจอร์ใหม่ได้ง่าย รองรับการใช้งานทั้งในสภาพแวดล้อมการพัฒนาและระบบผลิต พร้อมเอกสารการติดตั้งและคำสั่งการปรับใช้ที่ชัดเจนสำหรับนักพัฒนา

เอกสารต้นฉบับรายละเอียด (README)

MoMo Bot

🇹🇭 ฉบับภาษาไทย

A Discord bot built with Discord.js that provides fun and utility commands for Discord servers.

Features

Utility Commands

  • ping - Check bot latency and responsiveness
  • echo - Repeat messages
  • guide - Get help and guidance
  • info - Get information about users or server
  • reload - Reload commands
  • server - Server information
  • user - User information

Music Commands

  • play - Play music from YouTube, Spotify, or URL (supports playlists)
  • queue - View the current music queue with pagination
  • playqueue - Select and play a specific song from the queue
  • skip - Skip to the next song in the queue
  • pause - Pause/Resume the current song
  • loop - Toggle loop mode (off/track/queue)
  • clear - Clear all songs from the queue
  • leave - Disconnect bot from voice channel
  • 247 - Toggle 24/7 mode (bot stays in voice channel)

Fun Commands

  • dog - Get cute pictures of dogs (with breed options, supports multiple languages: Polish, German)
  • gif - Get GIF images

Prerequisites

  • Node.js (v18 or higher recommended)
  • npm or yarn
  • Discord bot token (from Discord Developer Portal)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd MoMo_Bot
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory and add your Discord bot token:

    TOKEN=your_discord_bot_token_here
    

    Get your token from the Discord Developer Portal

Usage

Starting the Bot

node index.js

The bot will:

  • Load all commands from the commands/ directory
  • Register event listeners from the events/ directory
  • Connect to Discord using your token

Deploying Commands

To deploy slash commands to Discord:

node deploy-commands.js

Deleting Commands

To delete all registered slash commands:

node deleteCommands.js

Reloading Commands

Use the /reload command in Discord to reload commands without restarting the bot.

Project Structure

MoMo_Bot/
├── index.js                 # Main bot entry point
├── deploy-commands.js       # Deploy slash commands to Discord
├── deleteCommands.js        # Delete all slash commands
├── package.json             # Project dependencies
├── .env                     # Environment variables (TOKEN, LAVALINK_*)
├── .gitattributes          # Git configuration
├── commands/                # All bot commands
│   ├── fun/                # Fun commands
│   │   ├── dog.js
│   │   └── gif.js
│   ├── music/              # Music commands (Lavalink-based)
│   │   ├── play.js         # Play music from URL/search
│   │   ├── queue.js        # View queue with pagination
│   │   ├── playqueue.js    # Select song from queue to play
│   │   ├── skip.js         # Skip current song
│   │   ├── pause.js        # Pause/Resume playback
│   │   ├── loop.js         # Loop mode (off/track/queue)
│   │   ├── clear.js        # Clear the queue
│   │   ├── leave.js        # Disconnect from voice
│   │   └── 247.js          # 24/7 mode toggle
│   └── utility/            # Utility commands
│       ├── echo.js
│       ├── guide.js
│       ├── info.js
│       ├── ping.js
│       ├── reload.js
│       ├── server.js
│       └── user.js
└── events/                 # Event handlers
    ├── interactionCreate.js # Handle slash command interactions
    ├── ready.js           # Bot ready event
    ├── raw.js             # Raw Discord API events
    └── lavalink/          # Lavalink music node events
        ├── nodeConnect.js
        ├── nodeError.js
        ├── nodeReconnect.js
        ├── queueEnd.js
        └── trackStart.js

Dependencies

  • discord.js (^14.25.1) - Discord API library for Node.js
  • dotenv (^17.2.3) - Environment variable loader
  • riffy (^1.0.8) - Lavalink wrapper for music features
  • @discordjs/voice (^0.19.0) - Voice channel support
  • play-dl (^1.9.7) - Audio download library
  • ytdl-core (^4.11.5) - YouTube downloader
  • ffmpeg-static (^5.3.0) - FFmpeg for audio processing

Development Notes

  • Commands support slash commands (Discord's newer command system)
  • Commands support localization (multiple language support)
  • Cooldown system is implemented to prevent command spam
  • Music system powered by Lavalink (requires a running Lavalink server)
  • Event-driven architecture for extensibility
  • Uses Riffy for managing music playback and queue management

Command Features

  • Slash Commands: Use Discord's slash command interface (/command-name)
  • Cooldowns: Many commands have cooldown periods to prevent abuse
  • Localization: Some commands support multiple languages (Polish, German, etc.)
  • Options: Commands accept optional parameters (e.g., /dog breed:labrador)

License

Not specified

Support

For issues or questions, please create an issue in the repository.


Created by: CableMoMo2027
Repository: MoMo_Bot

Project AI

ถาม AI เกี่ยวกับ MoMo_Bot

ถามแนวทาง เทคโนโลยี หรือความเหมาะสมของโปรเจกต์นี้กับไอเดียของคุณ

กำลังโหลดแชท / Loading chat…

ผู้มีส่วนร่วม
คุยกับ AI ดูงานคล้ายกันติดต่อจ้างงาน