Merge pull request #62 from night0721/dev

Dev
This commit is contained in:
Night Kaly 2022-03-24 17:20:48 +00:00 committed by GitHub
commit 1f8c857915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,16 +14,11 @@ module.exports = {
}, },
], ],
run: async (client, interaction, args) => { run: async (client, interaction, args) => {
if (args[0] > 0 && args[0] < 300) { if (args[0] > 0 && args[0] < 301) {
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setTitle(`The base sensitivity (ironsight or 1x Scope): ${args[0]}`) .setTitle(`Apex Legends Mobile Sensitivity Calculator`)
.setDescription( .setDescription(
`<:nyx_description:897379659665264650> [Video guide](https://rebrand.ly/apexm-sens) by HawksNest on how to set your sensitivity. `<:nyx_description:897379659665264650> For more info, follow this [Video guide](https://rebrand.ly/apexm-sens) by HawksNest.`
\n**Basic Sensitivity** \`\`\`
\nTPP without ADS ${args[0] * 2.09}
\nFPP without ADS ${args[0] * 1.29}
\`\`\`\n
**Scope Sensitivity**`
) )
.setColor(13703714) // hex: #d11a22 .setColor(13703714) // hex: #d11a22
.setFooter({ .setFooter({
@ -32,36 +27,25 @@ module.exports = {
"https://media.discordapp.net/attachments/851764525623672854/951532817647542342/more_hawksnest.jpg", "https://media.discordapp.net/attachments/851764525623672854/951532817647542342/more_hawksnest.jpg",
}) })
.setTimestamp() .setTimestamp()
.addFields( .addField(
{ {
name: "2x Scope ADS", name: "Basic Sensitivity",
value: `\`\`\`\n${args[0] * 0.5}\`\`\``, value: `
inline: true, 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: "3x Scope ADS", name: "Scope Sensitivity",
value: `\`\`\`\n${args[0] * 0.33}\`\`\``, value: `
inline: true, 2x Scope ADS - \`${args[0] * 0.5}\`
}, 3x Scope ADS - \`${args[0] * 0.33}\`
{ 4x Scope ADS - \`${args[0] * 0.25}\`
name: "4x Scope ADS", 6x Scope ADS - \`${args[0] * 0.16}\`
value: `${args[0] * 0.25}`, 8x Scope ADS - \`${args[0] * 0.12}\`
inline: true, 10x Scope ADS - \`${args[0] * 0.1}\``,
}, inline: false,
{
name: "6x Scope ADS",
value: `${args[0] * 0.16}`,
inline: true,
},
{
name: "8x Scope ADS",
value: `${args[0] * 0.12}`,
inline: true,
},
{
name: "10x Scope ADS",
value: `${args[0] * 0.1}`,
inline: true,
} }
) )
.setURL("https://hawksnestgg.wixsite.com/apexsens/apexsenscalc"); .setURL("https://hawksnestgg.wixsite.com/apexsens/apexsenscalc");