Skip to content

CodAre-Development/v14-slashli-altyapi

 
 

Repository files navigation

🤖 Discord Bot Template

A TypeScript template for creating Discord bots with discord.js

📦 Setup

  1. Clone the repo and install dependencies:

    git clone https://github.com/BurakYs/bot-template.git
    cd bot-template
    pnpm install
    cp .env.template .env
  2. Add your bot token to the .env file

  3. Register slash commands:

    pnpm register-commands
  4. Start the bot:

    pnpm start

✨ Features

🌐 Localization

  • Add new languages by:
    • Creating a JSON file in src/localizations
    • Updating the supportedLanguages array in src/config.ts
  • Command names/descriptions are in src/localizations/commandData

⚙️ Command Handler

  • Organize commands in subfolders under src/commands
  • See types/index.d.ts for config structure
  • Example of a subcommand-specific config:
    {
      config: {
        someOtherConfig: true,
        premiumOnly: {
          '*': false, // Default
          'subcommandName': true, // Only for this subcommand
          'groupName subcommandName': true, // For group subcommands
        }
      }
    }

🛠 Utility Functions

📝 License

This project is licensed under the MIT License.

About

TypeScript ve birden çok dil destekli Discord.JS V14 boş altyapı

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 95.8%
  • JavaScript 4.2%