economy
This commit is contained in:
parent
9c2256a9da
commit
7d986ffdef
2 changed files with 56 additions and 50 deletions
|
@ -1,9 +1,13 @@
|
|||
module.exports = {
|
||||
name: "add",
|
||||
name: "economy",
|
||||
category: "Owner",
|
||||
usage: "(Number)",
|
||||
description: "Add coins from someone",
|
||||
description: "Add/Remove coins from someone",
|
||||
Owner: true,
|
||||
options: [
|
||||
{
|
||||
type: 1,
|
||||
name: "add",
|
||||
description: "Remove coins from someone",
|
||||
options: [
|
||||
{
|
||||
type: 6,
|
||||
|
@ -18,7 +22,29 @@ module.exports = {
|
|||
required: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 1,
|
||||
name: "rmv",
|
||||
description: "Remove coins from someone",
|
||||
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) => {
|
||||
if (args[0] === "add") {
|
||||
await client.add(args[0], args[1], interaction);
|
||||
interaction.followUp({
|
||||
content: `<a:nyx_checkmark:897240322411724841> Successfully added **${interaction.options.getInteger(
|
||||
|
@ -27,5 +53,16 @@ module.exports = {
|
|||
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