A Discord bot project made with the npm package discord.js version 14

Overview


GitHub Repository Statistics/Info:

Discord Server:

Language:

Fork/Download For:

DiscordJS V14 ModMail Bot - Introduction:

A Discord bot project made with the npm package discord.js version 14 and it's job to manage mails on a server, and this project includes only one Database: Quick.db. This project also handles Slash commands. Project made with by T.F.A#7524.
You can click on the star ( ⭐️ ) button above this repository if you liked this project! Thank you all. 🙏

Features:

⭐️ Supports Modals!

⭐️ Supports Images & Videos!

:troll:

⭐️ Supports Buttons & More cool features!


How to setup:

- Requirements:

Node.js v16.9.0 or above.
Discord.js v14.3.0 or above.

- Creating a new client and inviting the bot:

#1- Go to Discord Developer Portal and then go to Applications.
#2- Create a new application and choose it's name.
#3- Put your application's avatar (not important).
#4- Go to Bot section and turn your application into a bot.
#5- Scroll down and enable the three disabled Privileged Gateaway Intents intents (PRESENCE INTENT, SERVER MEMBERS INTENT, and MESSAGE CONTENT INTENT).
#6- Go to OAuth2 section, and then URL Generator. Select the scopes bot and application.commands, and then scroll down to Bot Permissions, select Administrator (For all guild permissions). Copy the link that is generated below, open a new browser tab, paste the URL, choose a server where your bot will be in, verify yourself that you are not a robot, and Done!

⚠️ WARNING: Your bot must have the Administrator permission on your server and above to all the server roles (Except owner roles, because they have Administrator permission already.), else your bot won't work and it is going to show a lot of errors in your IDE's console.

- Setup your project on Repl.it:

#1- Go to Repl.it site and register a new account (If you are new on the site).
#2- Fork the project by clicking on the badge above this guide Fork For: Replit.
#3- Click on Import from GitHub and wait for Replit to import the repository to your project.
#4- Type node index.js or node . in the Run button configuration, and then press Done.
#5- Go to the file config.js and fill all the empty values of variables:

module.exports = {
  Client: {
    TOKEN: "", // String
    ID: "" // Number
  },

  Handler: {
    GUILD_ID: "", // Number
    CATEGORY_ID: "" // Number
  },

  Modmail: {
    INTERACTION_COMMAND_PERMISSIONS: ['Administrator'], // String & Array
    MAIL_MANAGER_ROLES: [''], // Number & Array
    MENTION_MANAGER_ROLES_WHEN_NEW_MAIL_CREATED: false // Boolean
  }
};

Client: TOKEN → Put your bot token there to connect to your bot by using your IDE.

⚠️ WARNING: Do not use this variable on Repl.it. Use it only in VSCode. Read the step #6 for more info.

Client: ID → Put your bot ID there to register the slash commands.
Handler: GUILD_ID → Put your server ID there to register the slash commands.
Handler: CATEGORY_ID → If you want a custom category ID that you've created, place the category ID there. Else, use the slash command /setup.
Modmail: INTERACTION_COMMAND_PERMISSIONS → Put the slash commands permissions (like /close, /setup... etc.) some permissions like Administrator, ManageServer... etc.
Modmail: MAIL_MANAGER_ROLES → Put there the Mails roles managers IDs. When the command /setup is executed, a category should be created with these roles.

⚠️ NOTE: If this variable is empty, the bot always automatically set a category to @everyone role the permission ViewChannels to false. Nobody can view the mails, only Administrators or server Owners can see the category.

Modmail: MENTION_MANAGER_ROLES_WHEN_NEW_MAIL_CREATED → Use true if you want the Mail Manager roles gets mentioned when a new mail has created. If you don't want, use false.

#6- Go to Environment Secret Variables (Located at your left screen with a 🔒 icon). This feature from Replit avoid attackers from accessing your secrets. Use the key as a variable, and the value is the variable's value. The key for your bot token is TOKEN, and the value is your bot token. After finishing this, click on Add new secret.
#7- Click on the green button on top of your screen ► Run to start running your project.
#8- Enjoy! =)

Usage:

- How to ban/unban someone from using ModMail:

Ban a user: /ban [user] (reason) - Unban a user: /unban [user].

- ModMail system:

Create a mail:

Go to your server members list (Located at your right screen on Discord), right click on your bot profile and click on Message. Type anything in the DM (Direct Message) with your bot, and your bot should respond that a mail has been successfully created. Go back to your server and check the channels in the category of ModMails, click on the created channel and start communicate. You can upload images and videos, it also works!

Close & Delete a mail:

Do not delete a mail channel by right clicking on the mail channel and then on Delete channel. Use the slash command /close on the mail to close the mail, or the button Close.

Something doesn't work here...

There are a lot of issues happens with some users. You can create an issue on this repository and I will respond to your opened issue(s) as fast as possible. I'm always busy, so please wait for me to respond to your issues.

Credits are required? (©)

Forking this repository and sharing it again without giving credits to me (T.F.A) is not acceptable. You can remove the credits in some embed messages or in bot status, but not in the main files like README.md, index.js... If you want to make a video about this repository, ask firstly to me and then I will give you the permissions to record, else, bypassing by without asking permissions will ends in a copyright warning.

Contact me!

YouTube Discord
You might also like...

Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Mar 20, 2022

A template to use for creating a Discord Bot using version 13.

DiscordV13 Template It is meant to be used as a solid base for your Discord bot, it already comes with a main file, command and event Handler, along w

Aug 26, 2022

This bot can raise your mood. This bot send joke often our channel for users. Sometimes bot don't work because we have not server for this project...)

This bot can raise your mood. This bot send joke often our channel for users. Sometimes bot don't work because we have not server for this project...)

Hi, welcome to send-joke-bot telegram bot project 🤖 What can do this bot ? This bot can raise your mood. This bot send joke often our channel for use

Sep 26, 2022

best discord selfbot with discord.js-selfbot npm

Discord-Afk-Selfbot best discord selfbot with discord.js-selfbot npm How to start the Bot step by step : Step 1 === Open a CMD the npm init step 2 ==

Aug 18, 2022

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

A NodeJS package for voice channel interactions on Revolt. This package lets you join voice channels, play music and more!

Revoice.js - A Voice Module for Revolt This package is still in developement and lacks many features. You still are able to play sound to a voice chan

Dec 25, 2022

Example for @Nuggies-bot NPM

giveaways-example Example for @Nuggies-bot NPM setup create a file named .env copy the content of .env.example paste your mongoDB URI and bot token ho

Jan 3, 2023

The official bot for Lewis Menelaws (TectTok). The bot is made by using Typescript. Feel free to contribute!

lewis-bot Prerequisites Create an application in Discord's developer portal. You need to add all the Intents and permissions. Then create a link in OA

Aug 11, 2022

An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters.

An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters.

Discord-cross-ratelimit An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters. Why? When Sharding/Scaling your Bot

Oct 23, 2022
Comments
  • Commands / Events Handling

    Commands / Events Handling

    It's a good idea to tidy things up with commands and events handlers, so I made one that kinda works.

    Although it might not be the best method to handle all the message events inside messageCreate.js but I managed to handle most of the parts, so the code in my pull request still requires fixes and improvements.

    Known issue: Close button on both DM and text channels aren't doing anything and I have no idea how to fix :/

    opened by raymond-1227 0
Releases(v6.3.0)
  • v6.3.0(Aug 31, 2022)

    Release v6.3.0!

    • Buttons can now respond if the bot has restarted. • Close buttons collectors removed. • More process anti-crash handlers. • Slash command /close has been removed.

    Source code(tar.gz)
    Source code(zip)
  • v6.2.1(Aug 30, 2022)

  • v6.2.0(Aug 29, 2022)

    Release v6.2.0!

    • Added help command. • Added auto mention manager roles when mail created (You can set it true or false in config.js). • Dynamic commands command added:

    Source code(tar.gz)
    Source code(zip)
  • v6.1.0(Aug 29, 2022)

  • v6.0.0(Aug 28, 2022)

    Release v6.0.0!

    • Major bugs fixed. • Modals handler added. • Fixed embed messages. • Fixed buttons handler. • Added .catch() to function .reply() (interaction.reply()) to handle errors.

    Source code(tar.gz)
    Source code(zip)
  • v5.0.0(Aug 15, 2022)

  • beta-v6.0.0(Aug 27, 2022)

    Release v6.0.0 BETA!

    ⚠️ Currently in BETA version, errors may be occurs and should be fixed soon.

    • Added modals system for closing a mail (Only in created mail channels, not in DM channels).

    • Added closing system in DMs channels.

    For an example, if a user has created accidentally a mail, they can close it without any problem.
    • Setup command is now available.


    Source code(tar.gz)
    Source code(zip)
  • alpha-v2.0.0(Aug 15, 2022)

    Pre-release of the new project v2

    • Edited configuration file config.json to config.js because using JavaScript like a config file is better than using JSON (JavaScript Object Notation). One small error in JSON file(s) causes many errors, that is why using JavaScript as a config file is better.

    Source code(tar.gz)
    Source code(zip)
  • alpha-v1.0.0(Aug 15, 2022)

Owner
T.F.A
A Discord bot developer (unverified) since 2019. Joined for the first time on Discord in 2017, left in 2019, and back in 2020 with a new account. Age: 16
T.F.A
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
A Simple Music Bot Made Using Discord-Player Package - (Beta)

Our Music Bot A Highly Powerful Music Bot Without Lavalink Which Is Gonna Have Setup, A Specific Text Channel For Bot Command Feature, And DJ System S

null 12 Dec 14, 2022
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
This project was created to help discord.js developers start their own bot, you can take this project as a basic for your bot and add things to it as you want. 🙂

Discord.js Starter-Bot A small & basic discord.js bot to help you get started ??️ This project was created to help discord.js developers start their o

Strike 3 Nov 29, 2022
A utility package for making discord-bot commands much easier to write with discord.js.

Cordcommand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example // initiate discord.js client

Reinforz 15 Sep 15, 2022
A utility package for making discord-bot commands much easier to write with discord.js.

Cordmand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example Install this package: npm i @rein

Reinforz 15 Sep 28, 2022
New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! > heroku/nodejs > https://g

zeeone 27 Feb 9, 2022