economy
This commit is contained in:
parent
9c2256a9da
commit
7d986ffdef
2 changed files with 56 additions and 50 deletions
|
@ -1,31 +1,68 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "add",
|
name: "economy",
|
||||||
category: "Owner",
|
category: "Owner",
|
||||||
usage: "(Number)",
|
description: "Add/Remove coins from someone",
|
||||||
description: "Add coins from someone",
|
|
||||||
Owner: true,
|
Owner: true,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
type: 6,
|
type: 1,
|
||||||
name: "user",
|
name: "add",
|
||||||
description: "The user you want to add",
|
description: "Remove coins from someone",
|
||||||
required: true,
|
options: [
|
||||||
|
{
|
||||||
|
type: 6,
|
||||||
|
name: "user",
|
||||||
|
description: "The user you want to add",
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 4,
|
||||||
|
name: "cp",
|
||||||
|
description: "The amount of CP you want to add",
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 4,
|
type: 1,
|
||||||
name: "cp",
|
name: "rmv",
|
||||||
description: "The amount of CP you want to add",
|
description: "Remove coins from someone",
|
||||||
required: true,
|
options: [
|
||||||
|
{
|
||||||
|
type: 6,
|
||||||
|
name: "user",
|
||||||
|
description: "The user you want to remove",
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 4,
|
||||||
|
name: "cp",
|
||||||
|
description: "The amount of CP you want to remove",
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
run: async (client, interaction, args) => {
|
run: async (client, interaction, args) => {
|
||||||
await client.add(args[0], args[1], interaction);
|
if (args[0] === "add") {
|
||||||
interaction.followUp({
|
await client.add(args[0], args[1], interaction);
|
||||||
content: `<a:nyx_checkmark:897240322411724841> Successfully added **${interaction.options.getInteger(
|
interaction.followUp({
|
||||||
"cp"
|
content: `<a:nyx_checkmark:897240322411724841> Successfully added **${interaction.options.getInteger(
|
||||||
)}** ${client.currency} in **${
|
"cp"
|
||||||
interaction.options.getUser("user").username
|
)}** ${client.currency} in **${
|
||||||
}**'s balance`,
|
interaction.options.getUser("user").username
|
||||||
});
|
}**'s balance`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (args[0] === "rmv") {
|
||||||
|
await client.rmv(args[0], args[1]);
|
||||||
|
interaction.followUp({
|
||||||
|
content: `<a:nyx_checkmark:897240322411724841> Successfully removed **${interaction.options.getInteger(
|
||||||
|
"cp"
|
||||||
|
)}** ${client.currency} from **${
|
||||||
|
interaction.options.getUser("user").username
|
||||||
|
}**'s balance`,
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
name: "rmv",
|
|
||||||
category: "Owner",
|
|
||||||
usage: "(Number)",
|
|
||||||
description: "Remove coins from someone",
|
|
||||||
Owner: true,
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
type: 6,
|
|
||||||
name: "user",
|
|
||||||
description: "The user you want to remove",
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 4,
|
|
||||||
name: "cp",
|
|
||||||
description: "The amount of CP you want to remove",
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
run: async (client, interaction, args) => {
|
|
||||||
await client.rmv(args[0], args[1]);
|
|
||||||
interaction.followUp({
|
|
||||||
content: `<a:nyx_checkmark:897240322411724841> Successfully removed **${interaction.options.getInteger(
|
|
||||||
"cp"
|
|
||||||
)}** ${client.currency} from **${
|
|
||||||
interaction.options.getUser("user").username
|
|
||||||
}**'s balance`,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
};
|
|
Loading…
Reference in a new issue