diff --git a/commands/help.js b/commands/help.js index bc35e47..20027ab 100644 --- a/commands/help.js +++ b/commands/help.js @@ -32,7 +32,7 @@ module.exports = { }, { name: "credits", - description: "DayzArmbands Credits", + description: "DayZR Bot Credits", value: "credits", type: 1, }, @@ -55,7 +55,7 @@ module.exports = { run: async (client, interaction, args, start) => { if (args[0].name == 'version') { const versionEmbed = new EmbedBuilder() - .setTitle(`Current DayzArmbands Version`) + .setTitle(`Current DayZR Bot Version`) .setDescription(client.config.Version); return interaction.send({ embeds: [versionEmbed] }); @@ -71,7 +71,7 @@ module.exports = { .setColor(client.config.Colors.Default) .setDescription(`${Commands.join("\n")} - DayzArmbands Version: v${client.config.Version}`); + DayZR Bot Version: v${client.config.Version}`); if (!args[0].options[0]) return interaction.send({ embeds: [Embed] }); else { let cmd = @@ -113,9 +113,9 @@ module.exports = { } else if (args[0].name == 'support') { const supportEmbed = new EmbedBuilder() .setColor(client.config.Colors.Default) - .setDescription(`**__DayzArmbands Support__** + .setDescription(`**__DayZR Bot Support__** - Are you experiencing troubles with DayzArmbands? + Are you experiencing troubles with the DayZR Bot? Do you have questions or concerns? Do you require help to use the bot? Do you have a feature you'd like to see? @@ -148,7 +148,7 @@ module.exports = { { name: 'Latency', value: `${end - start}ms`, inline: true }, { name: 'Uptime', value: `${client.secondsToDhms(process.uptime().toFixed(2))}`, inline: true }, { name: 'Bot Version', value: `${client.config.Dev} v${client.config.Version}`, inline: true }, - { name: 'Discord Version', value: 'Discord.js v14.3.0', inline: true }, + { name: 'Discord Version', value: 'Discord.js v^14.8.0', inline: true }, ) return interaction.send({ embeds: [stats] }) diff --git a/index.js b/index.js index a07e8a5..818349f 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ -const DayzArmbands = require('./structures/DayzArmbands'); +const DayzR = require('./structures/DayzRBot'); const config = require('./config/config'); const { GatewayIntentBits } = require('discord.js'); -let client = new DayzArmbands({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers] }, config); +let client = new DayzR({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers] }, config); client.build() diff --git a/package.json b/package.json index 0e2deab..ec902e6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "dayz-armbands", - "version": "8.11.0", - "description": "A General Purpose Discord Bot for DayZ Servers.", + "name": "dayz-r-bot", + "version": "9.0.0", + "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { "ignore": [ diff --git a/structures/DayzArmbands.js b/structures/DayzRBot.js similarity index 99% rename from structures/DayzArmbands.js rename to structures/DayzRBot.js index bb4e965..d8af197 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzRBot.js @@ -17,7 +17,7 @@ const readline = require('readline'); const minute = 60000; // 1 minute in milliseconds -class DayzArmbands extends Client { +class DayzRBot extends Client { constructor(options, config) { super(options) @@ -320,6 +320,7 @@ class DayzArmbands extends Client { Channel.send(embed); } + // Handles internal errors for slash commands. E.g failed to update database from slash command. sendInternalError(Interaction, Error) { this.error(Error); @@ -442,4 +443,4 @@ class DayzArmbands extends Client { } } -module.exports = DayzArmbands; +module.exports = DayzRBot;