Skip to content

Downzin01/Bot_Template-Discord.js-V14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖・Bot Template Discord.js V14

Clique na bandeira para alterar o idioma do README

Click the flag to change the README language

🧩・Requisitos




╔ 🧩・Recursos do projeto:

• Comandos prefixo;
• Comandos Slash;
• Comandos App/User;
• Suporte Database sqlite;
• Suporte MongoDB.



╔ 🧩・Criando o bot e adicionando no servidor:

  • 1. Entre no Discord Developer Portal e clique na opção Applications;
  • 2. No lado superior direito clique no botão New Application e nomeie seu bot;
  • 3. No lado esquerdo clique na opção Bot, logo seguida, no lado direito clique no botão Add Bot;
  • 4. Role para baixo e ative as três intenções de Privileged Gateaway Intents:
    ┕ (PRESENCE INTENT, SERVER MEMBERS INTENT e MESSAGE CONTENT INTENT);
  • 5. No lado esquerdo clique na opção OAuth2, em seguida, URL Generator. Selecione os escopos bot e application.commands, role para baixo até BOT PERMISSIONS, selecione Administrator (para todas as permissões da guilda);
  • 6. Copie o link que é gerado abaixo, abra uma nova aba do navegador, cole a URL, escolha um servidor onde ficará seu bot.



╔ 🧩・Configurando e instalando dependências do projeto:

  • 1. Baixe o projeto ou clone com:
git clone https://github.com/Downzin01/Bot_Template-Discord.js-V14
  • 2. Abre a pasta do projeto;
  • 3. No terminal para instalação das dependências, execute o comando:
npm install
  • 4. Acesse config/config.js e altere todos os valores:
module.exports = {
    Client: {
        Prefixo: "seu_prefixo",
        Token: "token_do_bot",
        ID: "id_do_bot"
    },
  
    Handlers: {
      MongoDB: "link_MongoDB" 
    },

    Users: {
        OWNERS: ["id_do_dono"] 
    },
};

Ou acesse .env e altere todos os valores:

TOKEN=TOKEN_DO_BOT
PREFIXO=SEU_PREFIXO
ID=ID_DO_BOT
MONGODB=LINK_MONGODB
OWNERS=ID_DO_DONO

⚠️ Por favor, não compartilhar com alguém os dados apresentados acima, principalmente o TOKEN. Problemas relacionados com esses dados não se aplicarão ao dono desse projeto, e sim do próprio usuário, proteja bem seus dados para garantir a segurança do seu bot.

  • 5. Para iniciar o bot, basta ir no terminal, executar:
npm run start

OU

node .
  • 6. Deu certo? É só aproveitar adiante. 😁



Gostaria de me ajudar financeiramente? 🤗

Opcional, mas me ajudaria demais




Click the flag to change the README language

Clique na bandeira para alterar o idioma do README

🧩・Requirements




╔ 🧩・Project features:

• Prefix commands;
• Slash Commands;
• Application/User Commands;
• Database sqlite support;
• MongoDB support.



╔ 🧩・Creating the bot and adding it to the server:

  • 1. Enter the Discord Developer Portal and click on the Applications option;
  • 2. At the top right click on the New Application button and name your bot;
  • 3. On the left side click on the Bot option, then on the right side click on the Add Bot button;
  • 4. Scroll down and enable the three Privileged Gateaway Intents:
    ┕ (PRESENCE INTENT, SERVER MEMBERSHIP INTENT, and MESSAGE CONTENT INTENT);
  • 5. On the left side click on the OAuth2 option, then URL Generator. Select the bot and application.commands scopes, scroll down to BOT PERMISSIONS, select Administrator (for all guild permissions);
  • 6. Copy the link that is generated below, open a new browser tab, paste the URL, choose a server where your bot will live.



╔ 🧩・Configuring and installing project dependencies:

  • 1. Download the project or clone with:
git clone https://github.com/Downzin01/Bot_Template-Discord.js-V14
  • 2. Opens the project folder;
  • 3. In the terminal to install the dependencies, run the command:
npm install
  • 4. Go to config/config.js and change all the values:
module.exports = {
    Client: {
        Prefixo: "your_prefix",
        Token: "token_bot",
        ID: "id_bot"
    },
  
    Handlers: {
      MongoDB: "link_MongoDB" 
    },

    Users: {
        OWNERS: ["id_OWNER"] 
    },
};

Or go to .env and change all the values:

TOKEN=TOKEN_BOT
PREFIXO=YOUR_PREFIX
ID=ID_BOT
MONGODB=LINK_MONGODB
OWNERS=ID_OWNER

⚠️ Please do not share the data presented above with anyone, especially the TOKEN. Problems related to this data will not apply to the owner of this project, but to the user himself, protect your data well to guarantee the security of your bot.

  • 5. To start the bot, just go to the terminal, run:
npm run start

OR

node .
  • 6. Did it work? Just enjoy it ahead. 😁



Would you like to help me financially? 🤗

Optional, but it would help me a lot

About

🤖🤝😁 Bot Template Discord.js v14

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published