Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 Handler

  • Organize commands in subfolders under src/commands
  • See types/index.d.ts for config structure
  • Example of a subcommand-specific config:
    defineCommand({
     data: new SlashCommandBuilder() /* ... */,
     config: {
     guildOnly: true,
     premiumOnly: { 
     '*': false, // Default
     'subcommandName': true, // Only applies to "subcommandName"
     'subcommandGroupName subcommandName': true // Only applies to "subcommandName" in "subcommandGroupName"
     }
     },
     run: async ({ client, interaction }) => {
     // command logic
     }
    });

🛠 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 96.0%
  • JavaScript 4.0%

AltStyle によって変換されたページ (->オリジナル) /