Skip to content

Releases: TFAGaming/DiscordJS-V14-Bot-Template

Version 3.0.1

06 Jun 16:45
a8d09d4
Compare
Choose a tag to compare
  • Added status rotation: Every 4 seconds, a random status will be set for the bot's presence. (#64)
  • Updated the bot login attempts logic.

Version 3.0.0

06 Jun 16:37
7690837
Compare
Choose a tag to compare
  • The database MongoDB has been removed and replaced with YAML for simplicity.
  • The client ID is no longer required, the handler will wait until the bot logs in and then register the application commands. For development, the guild ID must be set in config.js.
  • The bot now calculates attempts when trying to log in. If it fails, the Node.js process won't stop, it will retry until the bot logs in.
  • The handler directory is now in the client directory, and the events used for the handlers are also in separate files, and they're no longer in the events directory.
  • The command type directories have been removed, and have now been replaced with a private property __type__ in the command classes and other classes too, and the property is only used when the handler is reading the files. Here are the values for the type: ApplicationCommand = 1, MessageCommand = 2, Component = 3, AutocompleteComponent = 4, Event = 5.
  • When you create a command, event, or component, you must export it as an object, so the toJSON() function must be used at the end of each class:
module.exports = new ClassName({ ...data }).toJSON();
  • Added terminal.log file, which saves previous console messages. This is an important feature for hosting services because when you try to refresh the host panel, the console gets cleared out, while the terminal.log file still saves the messages.
  • Improved console logging: Added the time (Hours:Minutes:Seconds) on each prefix of console messages so you can get to know when the messages were sent.
  • Removed useless features such as moderation logs, because this might make the project look like a Discord Moderation bot.

Version 2.4.0

24 May 16:39
Compare
Choose a tag to compare

The last release of the v2.x.x versions.

  • Animated profile picture command 30e30f2
  • Mod-logs feature, Bug fixes, and small updates 0072799
  • discord.js v14.15.1 6d5c31b

Version 2.3.0

20 Jan 19:57
Compare
Choose a tag to compare

Features added:

  • Support for developer-only commands (#42)
  • Support for NSFW only commands (#43)
  • Message settings (#48)
  • Guild commands registration (#50)
  • Public and private modes for components (buttons and select menus only) (#51)
  • Autocomplete and global cooldown handlers (#53)

Bug fixes:

  • Voice channel state always returns true in user-info.js command (#45)
  • Not using the .env key CLIENT_ID in deploy.js (#46)
  • deploy.js won't deploy globally when the guild ID is missing for guild commands registration (#52)
  • Modals unable to respond to any of modal interactions (5f4acd5)
  • MongoDB won't connect after the property update (#55)

Other updates:

  • Updated discord.js to v14.14.1 with small changes (c942edc)
  • 3 important changes in one commit: (5f4acd5)
    • Changed the property handler.mongodb.toggle to handler.mongodb.enabled in example.config.js.
    • Moved isSnowflake function to functions.js
    • Updated isSnowflake function from ES5 to ES6.

Version 2.2.0

21 Aug 09:39
Compare
Choose a tag to compare
  • Modals handler added.
  • Custom presence added (discord.js v14.13.0).
  • Cooldown system handler added for message and application commands.
  • Permissions system handler added for message commands.

Version 2.1.0

27 Jul 09:42
Compare
Choose a tag to compare
  • Add components support: You can now handle buttons, select menus, modals... etc.
  • Support for .env file.
  • Toggle whenever you need MongoDB for your project or not (as a result, MongoDB is now optional).
  • Fixed help.js, ping.js, and messageCreate.js: If MongoDB is not connected, the commands/events files use directly the default config prefix instead of throwing an error.

Version 2.0.0

29 Jun 19:24
Compare
Choose a tag to compare

A new rebuild of the old code.

  • A lot of bug fixes.
  • More features.

Version v1.7.0 Last

29 Jun 19:05
efe5d6d
Compare
Choose a tag to compare

The last release of the v1.x.x versions.

  • Few bug fixes.
  • More updates.

Version 1.6.0

19 Nov 14:12
c041476
Compare
Choose a tag to compare

This was a pretty long time with no new releases, but here is a new one!

• Fixed Users.OWNERS error. (Issue #19)
• New folder "Installation Guide" for organized installation guides.

Thank you all for 90+ stars, I hope you all the best. ❤️

Version 1.5.2

07 Sep 16:57
5aa4b47
Compare
Choose a tag to compare

- Message commands event has been added.

I forgot to add this:

 if (interaction.isMessageContextMenuCommand()) { // Message:
    const command = client.message_commands.get(interaction.commandName);

    if (!command) return;

    try {
      command.run(client, interaction, config, db);
    } catch (e) {
      console.error(e)
    };
  };

Thanks for kanetjuh because they told me the error. :)

- Modals handler fixed.

When a modal file has been loaded, it says in the console the file is undefined.