Experimenting with embed
This commit is contained in:
parent
98bd127e5e
commit
9ce8e60ea9
1 changed files with 47 additions and 9 deletions
|
@ -14,15 +14,16 @@ 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] < 151) {
|
||||||
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> [Video guide](https://rebrand.ly/apexm-sens) by HawksNest on how to set your sensitivity.
|
||||||
\n**Basic Sensitivity** \`\`\`
|
\n**Basic Sensitivity** \`\`\`
|
||||||
\nTPP without ADS ${args[0] * 2.09}
|
For Base Sensitivity (ironsight or 1x Scope): ${args[0]}\n
|
||||||
\nFPP without ADS ${args[0] * 1.29}
|
TPP without ADS ${args[0] * 2.09}
|
||||||
\`\`\`\n
|
FPP without ADS ${args[0] * 1.29}
|
||||||
|
\`\`\`
|
||||||
**Scope Sensitivity**`
|
**Scope Sensitivity**`
|
||||||
)
|
)
|
||||||
.setColor(13703714) // hex: #d11a22
|
.setColor(13703714) // hex: #d11a22
|
||||||
|
@ -45,22 +46,22 @@ module.exports = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "4x Scope ADS",
|
name: "4x Scope ADS",
|
||||||
value: `${args[0] * 0.25}`,
|
value: `\`\`\`${args[0] * 0.25}\`\`\``,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "6x Scope ADS",
|
name: "6x Scope ADS",
|
||||||
value: `${args[0] * 0.16}`,
|
value: `\`\`\`${args[0] * 0.16}\`\`\``,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "8x Scope ADS",
|
name: "8x Scope ADS",
|
||||||
value: `${args[0] * 0.12}`,
|
value: `\`\`\`${args[0] * 0.12}\`\`\``,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "10x Scope ADS",
|
name: "10x Scope ADS",
|
||||||
value: `${args[0] * 0.1}`,
|
value: `\`\`\`${args[0] * 0.10}\`\`\``,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -68,6 +69,43 @@ module.exports = {
|
||||||
interaction.followUp({
|
interaction.followUp({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
});
|
});
|
||||||
|
} 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],
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setDescription(`⚠ **ERROR:** The Sensitivity can be betweeen 0 & 300`)
|
.setDescription(`⚠ **ERROR:** The Sensitivity can be betweeen 0 & 300`)
|
||||||
|
|
Loading…
Reference in a new issue