nyx/command/APEX/sens.js

117 lines
4 KiB
JavaScript
Raw Normal View History

2022-03-10 18:57:40 +01:00
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "class",
description: "Get the perfect sensitivity for APEXM",
category: "APEX",
usage: "[Ironsight Sensitivity ]",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "base_sensitivity",
description: "Enter the base ironsight sensitivity or for 1x scope",
required: true,
},
],
run: async (client, interaction, args) => {
2022-03-23 17:43:18 +01:00
if (args[0] > 0 && args[0] < 151) {
2022-03-10 18:57:40 +01:00
const embed = new MessageEmbed()
2022-03-23 17:43:18 +01:00
.setTitle(`Apex Legends Mobile Sensitivity Calculator`)
2022-03-10 18:57:40 +01:00
.setDescription(
`<:nyx_description:897379659665264650> [Video guide](https://rebrand.ly/apexm-sens) by HawksNest on how to set your sensitivity.
\n**Basic Sensitivity** \`\`\`
2022-03-23 17:43:18 +01:00
For Base Sensitivity (ironsight or 1x Scope): ${args[0]}\n
TPP without ADS ${args[0] * 2.09}
FPP without ADS ${args[0] * 1.29}
\`\`\`
2022-03-10 18:57:40 +01:00
**Scope Sensitivity**`
)
.setColor(13703714) // hex: #d11a22
.setFooter({
text: `Data by Hawksnest`,
iconURL:
"https://media.discordapp.net/attachments/851764525623672854/951532817647542342/more_hawksnest.jpg",
})
.setTimestamp()
.addFields(
{
name: "2x Scope ADS",
value: `\`\`\`\n${args[0] * 0.5}\`\`\``,
inline: true,
},
{
name: "3x Scope ADS",
value: `\`\`\`\n${args[0] * 0.33}\`\`\``,
inline: true,
},
{
name: "4x Scope ADS",
2022-03-23 17:43:18 +01:00
value: `\`\`\`${args[0] * 0.25}\`\`\``,
2022-03-10 18:57:40 +01:00
inline: true,
},
{
name: "6x Scope ADS",
2022-03-23 17:43:18 +01:00
value: `\`\`\`${args[0] * 0.16}\`\`\``,
2022-03-10 18:57:40 +01:00
inline: true,
},
{
name: "8x Scope ADS",
2022-03-23 17:43:18 +01:00
value: `\`\`\`${args[0] * 0.12}\`\`\``,
2022-03-10 18:57:40 +01:00
inline: true,
},
{
name: "10x Scope ADS",
2022-03-23 17:43:18 +01:00
value: `\`\`\`${args[0] * 0.10}\`\`\``,
2022-03-10 18:57:40 +01:00
inline: true,
}
)
.setURL("https://hawksnestgg.wixsite.com/apexsens/apexsenscalc");
interaction.followUp({
embeds: [embed],
});
2022-03-23 17:43:18 +01:00
} else if (args[0] > 150 && args[0] < 301) {
const embed = new MessageEmbed()
.setTitle(`Apex Legends Mobile Sensitivity Calculator`)
.setDescription(
`<:nyx_description:897379659665264650> For more info, follow this [Video guide](https://rebrand.ly/apexm-sens) by HawksNest.`)
.setColor(13703714) // hex: #d11a22
.setFooter({
text: `Data by Hawksnest`,
iconURL:
"https://media.discordapp.net/attachments/851764525623672854/951532817647542342/more_hawksnest.jpg",
})
.setTimestamp()
.addFields(
{
name: "Basic Sensitivity",
value: `
For Base Sensitivity (ironsight or 1x Scope): ${args[0]}\n
TPP without ADS ${args[0] * 2.09}
FPP without ADS ${args[0] * 1.29}`,
inline: false,
},
{
name: "Scope Sensitivity",
value: `
2x Scope ADS - \`\`\`${args[0] * 0.5 }\`\`\`
3x Scope ADS - \`\`\`${args[0] * 0.33}\`\`\`
4x Scope ADS - \`\`\`${args[0] * 0.25}\`\`\`
6x Scope ADS - \`\`\`${args[0] * 0.16}\`\`\`
8x Scope ADS - \`\`\`${args[0] * 0.12}\`\`\`
10x Scope ADS - \`\`\`${args[0] * 0.10}\`\`\``,
inline: false,
}
)
.setURL("https://hawksnestgg.wixsite.com/apexsens/apexsenscalc");
interaction.followUp({
embeds: [embed],
});
2022-03-10 18:57:40 +01:00
} else {
const embed = new MessageEmbed()
.setDescription(`⚠ **ERROR:** The Sensitivity can be betweeen 0 & 300`)
.setColor(client.color);
interaction.followUp({ embeds: [embed] });
}
},
};