Added SOD for Marksman Builds & more

Added SOD for Marksman Builds
Fixed Embed for Mobile
This commit is contained in:
ThunderE75 2022-02-03 14:45:25 +05:30 committed by GitHub
commit 1540d7843c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
{ {
@ -239,7 +239,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
{ {
@ -330,7 +330,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
], ],
@ -413,7 +413,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
], ],
@ -492,7 +492,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
{ {
@ -555,13 +555,13 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
// { {
// name: "Stats On Duty", name: "Stats On Duty",
// value: "sod", value: "sod",
// }, },
], ],
}, },
{ {
@ -630,7 +630,7 @@ module.exports = {
required: true, required: true,
choices: [ choices: [
{ {
name: "path.exe", name: "Path.exe",
value: "path.exe", value: "path.exe",
}, },
// { // {
@ -670,15 +670,15 @@ module.exports = {
.then(res => res.data) .then(res => res.data)
.catch(e => null); .catch(e => null);
var all = { var all = {
"path.exe": "path.exe", "path.exe": "Path.exe",
dhitman: "dHitman", dhitman: "dHitman",
jokesta: "Jokesta", jokesta: "Jokesta",
// littleb:"Little B", sod: "Stats On Duty",
aggressive: "Aggressive", aggressive: "Aggressive",
passive: "Passive", passive: "Passive",
respawn: "Respawn",
"Search And Destroy": "Search And Destroy", "Search And Destroy": "Search And Destroy",
respawn: "respawn",
ads: "ADS", ads: "ADS",
hipfire: "Hipfire", hipfire: "Hipfire",
}; };
@ -686,7 +686,7 @@ module.exports = {
if (!data?.cwts) { if (!data?.cwts) {
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setDescription( .setDescription(
`<:nyx_not_available:897378400031879188> We don't have a **${all[tag]}** gunsmith build for the gun with **CWTS ${cwts}** by **${all[cc]}**, Please try another tag or a differnt content creator` `<:nyx_not_available:897378400031879188> We don't have a **${all[tag]}** gunsmith build for the gun with **CWTS 🆔 ${cwts}** by **${all[cc]}**, Please try another tag or a differnt content creator`
) )
.setColor(client.color); .setColor(client.color);
interaction.followUp({ embeds: [embed] }); interaction.followUp({ embeds: [embed] });
@ -700,7 +700,7 @@ module.exports = {
`${all[tag]} build for ${data.weaponName} from ${data.author}` `${all[tag]} build for ${data.weaponName} from ${data.author}`
) )
.setDescription( .setDescription(
`<:nyx_description:897379659665264650> **Description** \`\`\`\n${data.notes} \n\`\`\`` `<:nyx_description:897379659665264650> **Description** \`\`\`\n${data.notes}\n \`\`\``
) )
.setColor(16580400) .setColor(16580400)
.setImage(data.imageUrl) .setImage(data.imageUrl)