Skip to content

yazilimcimekani/DiscordBotTemplate

Repository files navigation

Discord Bot Template

A basic Discord.js template repository for creating discord bots.

by Yazılımcı Mekanı for everyone

Table of Contents

Key Features

  • Latest Discord Api Support

This template repository uses the latest version of Discord.js. Don't worry about the updates.

You can use slashCommands, buttons, selectMenus, modals and more.

  • Multi Purpose

Structure of this template repository is designed being multi purpose.

Can i do {x} with this template?

Yes, you can do anything with this template.

  • Easy to Use

Easy to use and well documented. You can start coding your bot in minutes. Don't forget to read the documentation.

  • Multi Language Support

You can easily translate command metadatas to user's preffered language.

Interested? Please see ./src/commands/i18n/ directory.

  • Easy Database Migration

You can use any database you want. This template repository uses Sequelize ORM

Available databases are: MySQL,PostgreSQL, MsSQL

  • Easy to Deploy

You can deploy your bot to any platform you want with Docker.

docker build -t my-discord-bot .
docker run -d --env-file ./.env my-discord-bot

Getting Started

Clicking Use this template button is the best way to start your project.

But you can also use git clone and remove the current source control mechanism.

git clone CLONE_URL
cd DiscordBotTemplate
rm -rf .git/

Installation

Dependencies

First, you need to have Node.js installed on your computer.

Then, you need to install the dependencies of the project.

We are using yarn package manager.

yarn install --frozen-lockfile

Then, you need to create a .env file in the root directory of the project.

Fill in the required fields in the .env file.

Example .env file: ./.env.example

Starting the bot

Starting the bot with hot reload by Nodemon:

yarn dev

And that's the result:

[BOT] Bot is ready!

Happy coding!

Contributing

Please read our CONTRIBUTING.md before submitting a Pull Request.

Support

You want some help? Please read the issues before submitting a new question. Someone may have already asked the same question.

Didn't find the answer? Feel free to open a new issue.

For technical support, you can join our Discord Server and ask your question in our forum channels.

Made with ❤️ by Yazılımcı Mekanı