fix/command types
This commit is contained in:
10 files changed
+91
-91
No files matched your search
@@ -19,7 +19,7 @@ module.exports = {
|
|||||||
name: "gamertag-link",
|
name: "gamertag-link",
|
||||||
description: "Link a gamertag for a user",
|
description: "Link a gamertag for a user",
|
||||||
value: "gamertag-link",
|
value: "gamertag-link",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "user",
|
name: "user",
|
||||||
description: "User to link gamertag to",
|
description: "User to link gamertag to",
|
||||||
@@ -38,7 +38,7 @@ module.exports = {
|
|||||||
name: "gamertag-unlink",
|
name: "gamertag-unlink",
|
||||||
description: "Unlink a gamertag for a user",
|
description: "Unlink a gamertag for a user",
|
||||||
value: "gamertag-unlink",
|
value: "gamertag-unlink",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "user",
|
name: "user",
|
||||||
description: "User to link gamertag to",
|
description: "User to link gamertag to",
|
||||||
@@ -50,7 +50,7 @@ module.exports = {
|
|||||||
name: "claim-armband",
|
name: "claim-armband",
|
||||||
description: "Claim an armband for a faction",
|
description: "Claim an armband for a faction",
|
||||||
value: "claim-armband",
|
value: "claim-armband",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "faction_role",
|
name: "faction_role",
|
||||||
description: "Claim an armband for this faction role.",
|
description: "Claim an armband for this faction role.",
|
||||||
@@ -62,7 +62,7 @@ module.exports = {
|
|||||||
name: "bounty-clear",
|
name: "bounty-clear",
|
||||||
description: "Clear a bounty off a player",
|
description: "Clear a bounty off a player",
|
||||||
value: "bounty-clear",
|
value: "bounty-clear",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player",
|
description: "Gamertag of player",
|
||||||
@@ -75,17 +75,17 @@ module.exports = {
|
|||||||
name: "money",
|
name: "money",
|
||||||
description: "Add/Remove money to a user",
|
description: "Add/Remove money to a user",
|
||||||
value: "money",
|
value: "money",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [{
|
options: [{
|
||||||
name: "add",
|
name: "add",
|
||||||
description: "Add money to user",
|
description: "Add money to user",
|
||||||
value: "add",
|
value: "add",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to add to balance",
|
description: "The amount to add to balance",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}, {
|
}, {
|
||||||
@@ -99,12 +99,12 @@ module.exports = {
|
|||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove money from a user",
|
description: "Remove money from a user",
|
||||||
value: "remove",
|
value: "remove",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to remove from balance",
|
description: "The amount to remove from balance",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
+16
-16
@@ -40,13 +40,13 @@ module.exports = {
|
|||||||
name: "create",
|
name: "create",
|
||||||
description: "Create a new Zone Ping Alarm",
|
description: "Create a new Zone Ping Alarm",
|
||||||
value: "create",
|
value: "create",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "x-coord",
|
name: "x-coord",
|
||||||
description: "X Coordinate of the origin",
|
description: "X Coordinate of the origin",
|
||||||
value: "x-coord",
|
value: "x-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
@@ -54,7 +54,7 @@ module.exports = {
|
|||||||
name: "y-coord",
|
name: "y-coord",
|
||||||
description: "Y Coordinate of the origin",
|
description: "Y Coordinate of the origin",
|
||||||
value: "y-coord",
|
value: "y-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
@@ -62,7 +62,7 @@ module.exports = {
|
|||||||
name: "radius",
|
name: "radius",
|
||||||
description: "Radius of Alarm",
|
description: "Radius of Alarm",
|
||||||
value: "radius",
|
value: "radius",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 25.00,
|
min_value: 25.00,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
@@ -108,13 +108,13 @@ module.exports = {
|
|||||||
name: "delete",
|
name: "delete",
|
||||||
description: "Delete an Alarm",
|
description: "Delete an Alarm",
|
||||||
value: "delete",
|
value: "delete",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "add-player",
|
name: "add-player",
|
||||||
description: "Add player to be ignored list of an Alarm",
|
description: "Add player to be ignored list of an Alarm",
|
||||||
value: "add-player",
|
value: "add-player",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player to ignore",
|
description: "Gamertag of player to ignore",
|
||||||
@@ -127,7 +127,7 @@ module.exports = {
|
|||||||
name: "remove-player",
|
name: "remove-player",
|
||||||
description: "Remove a player from the ignored list of an Alarm",
|
description: "Remove a player from the ignored list of an Alarm",
|
||||||
value: "remove-player",
|
value: "remove-player",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player to ignore",
|
description: "Gamertag of player to ignore",
|
||||||
@@ -140,19 +140,19 @@ module.exports = {
|
|||||||
name: "disable",
|
name: "disable",
|
||||||
description: "Disable an Alarm",
|
description: "Disable an Alarm",
|
||||||
value: "disable",
|
value: "disable",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "enable",
|
name: "enable",
|
||||||
description: "Enable an Alarm",
|
description: "Enable an Alarm",
|
||||||
value: "enable",
|
value: "enable",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "mute",
|
name: "mute",
|
||||||
description: "Mute the role ping of an Alarm",
|
description: "Mute the role ping of an Alarm",
|
||||||
value: "mute",
|
value: "mute",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "toggle",
|
name: "toggle",
|
||||||
description: "Turn on/off role pings for this alarm",
|
description: "Turn on/off role pings for this alarm",
|
||||||
@@ -165,7 +165,7 @@ module.exports = {
|
|||||||
name: "set-rule",
|
name: "set-rule",
|
||||||
description: "Add a Rule to an Alarm",
|
description: "Add a Rule to an Alarm",
|
||||||
value: "set-rule",
|
value: "set-rule",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "rule",
|
name: "rule",
|
||||||
description: "Select a rule to add to an Alarm",
|
description: "Select a rule to add to an Alarm",
|
||||||
@@ -183,13 +183,13 @@ module.exports = {
|
|||||||
name: "remove-rule",
|
name: "remove-rule",
|
||||||
description: "Remove a rule from an Alarm",
|
description: "Remove a rule from an Alarm",
|
||||||
value: "remove-rule",
|
value: "remove-rule",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "rename",
|
name: "rename",
|
||||||
description: "Rename an Alarm",
|
description: "Rename an Alarm",
|
||||||
value: "rename",
|
value: "rename",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "name",
|
name: "name",
|
||||||
description: "New Alarm Name",
|
description: "New Alarm Name",
|
||||||
@@ -202,12 +202,12 @@ module.exports = {
|
|||||||
name: "move-origin",
|
name: "move-origin",
|
||||||
description: "Move the origin of an Alarm",
|
description: "Move the origin of an Alarm",
|
||||||
value: "move-origin",
|
value: "move-origin",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "x-coord",
|
name: "x-coord",
|
||||||
description: "X Coordinate of the new origin",
|
description: "X Coordinate of the new origin",
|
||||||
value: "x-coord",
|
value: "x-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
@@ -215,7 +215,7 @@ module.exports = {
|
|||||||
name: "y-coord",
|
name: "y-coord",
|
||||||
description: "Y Coordinate of the new origin",
|
description: "Y Coordinate of the new origin",
|
||||||
value: "y-coord",
|
value: "y-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
name: "balance",
|
name: "balance",
|
||||||
description: "View your bank balance",
|
description: "View your bank balance",
|
||||||
value: "balance",
|
value: "balance",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "user",
|
name: "user",
|
||||||
description: "User to view ballance",
|
description: "User to view ballance",
|
||||||
@@ -30,7 +30,7 @@ module.exports = {
|
|||||||
name: "transfer",
|
name: "transfer",
|
||||||
description: "Transfer money to another user",
|
description: "Transfer money to another user",
|
||||||
value: "transfer",
|
value: "transfer",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "user",
|
name: "user",
|
||||||
@@ -43,7 +43,7 @@ module.exports = {
|
|||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to transfer",
|
description: "The amount to transfer",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
name: "set",
|
name: "set",
|
||||||
description: "Set a bounty on a player",
|
description: "Set a bounty on a player",
|
||||||
value: "set",
|
value: "set",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player for bounty",
|
description: "Gamertag of player for bounty",
|
||||||
@@ -28,7 +28,7 @@ module.exports = {
|
|||||||
name: "value",
|
name: "value",
|
||||||
description: "Amount of the bounty",
|
description: "Amount of the bounty",
|
||||||
value: "value",
|
value: "value",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true
|
required: true
|
||||||
}, {
|
}, {
|
||||||
@@ -42,12 +42,12 @@ module.exports = {
|
|||||||
name: "pay",
|
name: "pay",
|
||||||
description: "Pay off your bounty",
|
description: "Pay off your bounty",
|
||||||
value: "pay",
|
value: "pay",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}, {
|
}, {
|
||||||
name: "view",
|
name: "view",
|
||||||
description: "View all active bounties",
|
description: "View all active bounties",
|
||||||
value: "view",
|
value: "view",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}],
|
}],
|
||||||
SlashCommand: {
|
SlashCommand: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
+39
-39
@@ -18,13 +18,13 @@ module.exports = {
|
|||||||
name: "killfeed",
|
name: "killfeed",
|
||||||
description: "Configure the killfeed",
|
description: "Configure the killfeed",
|
||||||
value: "killfeed",
|
value: "killfeed",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "channel",
|
name: "channel",
|
||||||
description: "Configure the killfeed channel",
|
description: "Configure the killfeed channel",
|
||||||
value: "channel",
|
value: "channel",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "channel",
|
name: "channel",
|
||||||
description: "The channel to configure",
|
description: "The channel to configure",
|
||||||
@@ -37,7 +37,7 @@ module.exports = {
|
|||||||
name: "show_coords",
|
name: "show_coords",
|
||||||
description: "Show the coordinates of the victim in the killfeed channel.",
|
description: "Show the coordinates of the victim in the killfeed channel.",
|
||||||
value: "show_coords",
|
value: "show_coords",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "configuration",
|
name: "configuration",
|
||||||
description: "True or False",
|
description: "True or False",
|
||||||
@@ -50,7 +50,7 @@ module.exports = {
|
|||||||
name: "show_weapon",
|
name: "show_weapon",
|
||||||
description: "Show the image of the weapon in the killfeed",
|
description: "Show the image of the weapon in the killfeed",
|
||||||
value: "show_weapon",
|
value: "show_weapon",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "configuration",
|
name: "configuration",
|
||||||
description: "True or False",
|
description: "True or False",
|
||||||
@@ -65,13 +65,13 @@ module.exports = {
|
|||||||
name: "allowed_channels",
|
name: "allowed_channels",
|
||||||
description: "Set channels you're allowed to use the bot in",
|
description: "Set channels you're allowed to use the bot in",
|
||||||
value: "allowed_channels",
|
value: "allowed_channels",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "add",
|
name: "add",
|
||||||
description: "Add channel",
|
description: "Add channel",
|
||||||
value: "add",
|
value: "add",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "channel",
|
name: "channel",
|
||||||
description: "The channel to configure",
|
description: "The channel to configure",
|
||||||
@@ -85,7 +85,7 @@ module.exports = {
|
|||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove channel",
|
description: "Remove channel",
|
||||||
value: "remove",
|
value: "remove",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "channel",
|
name: "channel",
|
||||||
description: "The channel to configure",
|
description: "The channel to configure",
|
||||||
@@ -99,13 +99,13 @@ module.exports = {
|
|||||||
name: "clear",
|
name: "clear",
|
||||||
description: "Clears all configured channels",
|
description: "Clears all configured channels",
|
||||||
value: "clear",
|
value: "clear",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "view",
|
name: "view",
|
||||||
description: "View configured allowed channels",
|
description: "View configured allowed channels",
|
||||||
value: "view",
|
value: "view",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -113,7 +113,7 @@ module.exports = {
|
|||||||
name: "set_channel",
|
name: "set_channel",
|
||||||
description: "Configure a channel",
|
description: "Configure a channel",
|
||||||
value: "set_channel",
|
value: "set_channel",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "channel_type",
|
name: "channel_type",
|
||||||
@@ -140,7 +140,7 @@ module.exports = {
|
|||||||
name: "linked_gt_role",
|
name: "linked_gt_role",
|
||||||
description: "Role for users with linked gamertags",
|
description: "Role for users with linked gamertags",
|
||||||
value: "linked_gt_role",
|
value: "linked_gt_role",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to configure",
|
description: "Role to configure",
|
||||||
@@ -153,7 +153,7 @@ module.exports = {
|
|||||||
name: "member_role",
|
name: "member_role",
|
||||||
description: "Role for users who join the server",
|
description: "Role for users who join the server",
|
||||||
value: "member_role",
|
value: "member_role",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to configure",
|
description: "Role to configure",
|
||||||
@@ -166,13 +166,13 @@ module.exports = {
|
|||||||
name: "bot_admin_role",
|
name: "bot_admin_role",
|
||||||
description: "Set/remove bot admin role",
|
description: "Set/remove bot admin role",
|
||||||
value: "bot_admin_role",
|
value: "bot_admin_role",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "add",
|
name: "add",
|
||||||
description: "Configure role to be bot admin",
|
description: "Configure role to be bot admin",
|
||||||
value: "add",
|
value: "add",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to confiure",
|
description: "Role to confiure",
|
||||||
@@ -185,7 +185,7 @@ module.exports = {
|
|||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove configured role as bot admin",
|
description: "Remove configured role as bot admin",
|
||||||
value: "remove",
|
value: "remove",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to remove",
|
description: "Role to remove",
|
||||||
@@ -198,7 +198,7 @@ module.exports = {
|
|||||||
name: "view",
|
name: "view",
|
||||||
description: "View the configured bot admin roles",
|
description: "View the configured bot admin roles",
|
||||||
value: "view",
|
value: "view",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -206,7 +206,7 @@ module.exports = {
|
|||||||
name: "admin_ping_role",
|
name: "admin_ping_role",
|
||||||
description: "Admin role to ping in admin logs channel",
|
description: "Admin role to ping in admin logs channel",
|
||||||
value: "admin_ping_role",
|
value: "admin_ping_role",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to configure",
|
description: "Role to configure",
|
||||||
@@ -219,13 +219,13 @@ module.exports = {
|
|||||||
name: "exclude",
|
name: "exclude",
|
||||||
description: "Exclude roles that can be used to claim armbands",
|
description: "Exclude roles that can be used to claim armbands",
|
||||||
value: "exclude",
|
value: "exclude",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "add",
|
name: "add",
|
||||||
description: "Configure role to be excluded",
|
description: "Configure role to be excluded",
|
||||||
value: "add",
|
value: "add",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to confiure",
|
description: "Role to confiure",
|
||||||
@@ -238,7 +238,7 @@ module.exports = {
|
|||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove configured role thats excluded",
|
description: "Remove configured role thats excluded",
|
||||||
value: "remove",
|
value: "remove",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to remove",
|
description: "Role to remove",
|
||||||
@@ -251,7 +251,7 @@ module.exports = {
|
|||||||
name: "view",
|
name: "view",
|
||||||
description: "View the configured excluded roles",
|
description: "View the configured excluded roles",
|
||||||
value: "view",
|
value: "view",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -259,24 +259,24 @@ module.exports = {
|
|||||||
name: "reset",
|
name: "reset",
|
||||||
description: "Restore all settings to default configurations",
|
description: "Restore all settings to default configurations",
|
||||||
value: "reset",
|
value: "reset",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "view",
|
name: "view",
|
||||||
description: "View current settings configuration",
|
description: "View current settings configuration",
|
||||||
value: "view",
|
value: "view",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "starting_balance",
|
name: "starting_balance",
|
||||||
description: "Set the starting balance of a new user",
|
description: "Set the starting balance of a new user",
|
||||||
value: "starting_balance",
|
value: "starting_balance",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to set the starting balance",
|
description: "The amount to set the starting balance",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 1.00,
|
min_value: 1.00,
|
||||||
required: true,
|
required: true,
|
||||||
}]
|
}]
|
||||||
@@ -285,12 +285,12 @@ module.exports = {
|
|||||||
name: "uav-price",
|
name: "uav-price",
|
||||||
description: "Configure the price of a UAV",
|
description: "Configure the price of a UAV",
|
||||||
value: "uav-price",
|
value: "uav-price",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to set the UAV price",
|
description: "The amount to set the UAV price",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}]
|
}]
|
||||||
@@ -299,12 +299,12 @@ module.exports = {
|
|||||||
name: "emp-price",
|
name: "emp-price",
|
||||||
description: "Configure the price of an EMP",
|
description: "Configure the price of an EMP",
|
||||||
value: "emp-price",
|
value: "emp-price",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to set the EMP price",
|
description: "The amount to set the EMP price",
|
||||||
value: "amount",
|
value: "amount",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}]
|
}]
|
||||||
@@ -313,13 +313,13 @@ module.exports = {
|
|||||||
name: "income_role",
|
name: "income_role",
|
||||||
description: "Set/remove roles to recieve income",
|
description: "Set/remove roles to recieve income",
|
||||||
value: "set_income_role",
|
value: "set_income_role",
|
||||||
type: ApplicationCommandOptionType.SubCommandGroup,
|
type: ApplicationCommandOptionType.SubcommandGroup,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "set",
|
name: "set",
|
||||||
description: "Set role",
|
description: "Set role",
|
||||||
value: "set",
|
value: "set",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "role",
|
name: "role",
|
||||||
@@ -332,7 +332,7 @@ module.exports = {
|
|||||||
name: "amount",
|
name: "amount",
|
||||||
description: "The amount to collect",
|
description: "The amount to collect",
|
||||||
value: 120.00,
|
value: 120.00,
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
}
|
}
|
||||||
@@ -342,7 +342,7 @@ module.exports = {
|
|||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove role",
|
description: "Remove role",
|
||||||
value: "remove",
|
value: "remove",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "role",
|
name: "role",
|
||||||
description: "Role to remove",
|
description: "Role to remove",
|
||||||
@@ -357,12 +357,12 @@ module.exports = {
|
|||||||
name: "income_limiter",
|
name: "income_limiter",
|
||||||
description: "Change the number of hours to wait before collecting next income",
|
description: "Change the number of hours to wait before collecting next income",
|
||||||
value: "income_limiter",
|
value: "income_limiter",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "hours",
|
name: "hours",
|
||||||
description: "Number of hours till income can be collected",
|
description: "Number of hours till income can be collected",
|
||||||
value: 168.00, // 1 week
|
value: 168.00, // 1 week
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 1.00,
|
min_value: 1.00,
|
||||||
required: true,
|
required: true,
|
||||||
}]
|
}]
|
||||||
@@ -371,7 +371,7 @@ module.exports = {
|
|||||||
name: "combat-log-timer",
|
name: "combat-log-timer",
|
||||||
description: "Adjust number of minutes to detect combat logs (0 disables combat log)",
|
description: "Adjust number of minutes to detect combat logs (0 disables combat log)",
|
||||||
value: "combat-log-timer",
|
value: "combat-log-timer",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "minutes",
|
name: "minutes",
|
||||||
description: "Minutes to qualify combat log",
|
description: "Minutes to qualify combat log",
|
||||||
@@ -384,7 +384,7 @@ module.exports = {
|
|||||||
name: "toggle-uav-purchase",
|
name: "toggle-uav-purchase",
|
||||||
description: "Allow/Disallow UAV purchases",
|
description: "Allow/Disallow UAV purchases",
|
||||||
value: "toggle-uav-purchase",
|
value: "toggle-uav-purchase",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "configuration",
|
name: "configuration",
|
||||||
description: "True or False",
|
description: "True or False",
|
||||||
@@ -397,7 +397,7 @@ module.exports = {
|
|||||||
name: "toggle-emp-purchase",
|
name: "toggle-emp-purchase",
|
||||||
description: "Allow/Disallow EMP purchases",
|
description: "Allow/Disallow EMP purchases",
|
||||||
value: "toggle-uav-purchase",
|
value: "toggle-uav-purchase",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "configuration",
|
name: "configuration",
|
||||||
description: "True or False",
|
description: "True or False",
|
||||||
@@ -410,7 +410,7 @@ module.exports = {
|
|||||||
name: "welcome_message_server_name",
|
name: "welcome_message_server_name",
|
||||||
description: "Configure the server name in the welcome message",
|
description: "Configure the server name in the welcome message",
|
||||||
value: "welcome_message_server_name",
|
value: "welcome_message_server_name",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "name",
|
name: "name",
|
||||||
description: "Server name to include in welcome message",
|
description: "Server name to include in welcome message",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
name: "player-track",
|
name: "player-track",
|
||||||
description: "Track a player and announce location",
|
description: "Track a player and announce location",
|
||||||
value: "player-track",
|
value: "player-track",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player",
|
description: "Gamertag of player",
|
||||||
@@ -60,7 +60,7 @@ module.exports = {
|
|||||||
name: "delete",
|
name: "delete",
|
||||||
description: "Delete an active event",
|
description: "Delete an active event",
|
||||||
value: "delete",
|
value: "delete",
|
||||||
type: ApplicationCommandOptionType.SubCommand
|
type: ApplicationCommandOptionType.Subcommand
|
||||||
}],
|
}],
|
||||||
SlashCommand: {
|
SlashCommand: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
name: "commands",
|
name: "commands",
|
||||||
description: "List all commands",
|
description: "List all commands",
|
||||||
value: "commands",
|
value: "commands",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "command",
|
name: "command",
|
||||||
description: "Get information on a specific command",
|
description: "Get information on a specific command",
|
||||||
@@ -30,19 +30,19 @@ module.exports = {
|
|||||||
name: "support",
|
name: "support",
|
||||||
description: "Get support for Application",
|
description: "Get support for Application",
|
||||||
value: "support",
|
value: "support",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "credits",
|
name: "credits",
|
||||||
description: "DayZ.R Bot Credits",
|
description: "DayZ.R Bot Credits",
|
||||||
value: "credits",
|
value: "credits",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "stats",
|
name: "stats",
|
||||||
description: "Current Bot Statistics",
|
description: "Current Bot Statistics",
|
||||||
value: "stats",
|
value: "stats",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
SlashCommand: {
|
SlashCommand: {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ module.exports = {
|
|||||||
name: "discord",
|
name: "discord",
|
||||||
description: "Find a Discord user from a Gamertag",
|
description: "Find a Discord user from a Gamertag",
|
||||||
value: "discord",
|
value: "discord",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Gamertag of player",
|
description: "Gamertag of player",
|
||||||
@@ -27,7 +27,7 @@ module.exports = {
|
|||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "Find a Gamertag from a Discord user",
|
description: "Find a Gamertag from a Discord user",
|
||||||
value: "gamertag",
|
value: "gamertag",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "user",
|
name: "user",
|
||||||
description: "Discord User",
|
description: "Discord User",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
name: "x-coord",
|
name: "x-coord",
|
||||||
description: "X Coordinate of the origin",
|
description: "X Coordinate of the origin",
|
||||||
value: "x-coord",
|
value: "x-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@ module.exports = {
|
|||||||
name: "y-coord",
|
name: "y-coord",
|
||||||
description: "Y Coordinate of the origin",
|
description: "Y Coordinate of the origin",
|
||||||
value: "y-coord",
|
value: "y-coord",
|
||||||
type: ApplicationCommandOptionType.Float,
|
type: ApplicationCommandOptionType.Number,
|
||||||
min_value: 0.01,
|
min_value: 0.01,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|||||||
+10
-10
@@ -18,31 +18,31 @@ module.exports = {
|
|||||||
name: "initialize",
|
name: "initialize",
|
||||||
description: "Connect your Nitrado server to the bot",
|
description: "Connect your Nitrado server to the bot",
|
||||||
value: "initialize",
|
value: "initialize",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "disconnect",
|
name: "disconnect",
|
||||||
description: "Delete your Nitrado server from the bot database",
|
description: "Delete your Nitrado server from the bot database",
|
||||||
value: "disconnect",
|
value: "disconnect",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "credentials-status",
|
name: "credentials-status",
|
||||||
description: "Check the status of your Nitrado Credentials",
|
description: "Check the status of your Nitrado Credentials",
|
||||||
value: "credentials-status",
|
value: "credentials-status",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "retry-credentials",
|
name: "retry-credentials",
|
||||||
description: "If your credentials are marked as FAILED, try retreiving Nitrado logs again.",
|
description: "If your credentials are marked as FAILED, try retreiving Nitrado logs again.",
|
||||||
value: "retry-credentials",
|
value: "retry-credentials",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "ban-player",
|
name: "ban-player",
|
||||||
description: "Ban a player from the DayZ server",
|
description: "Ban a player from the DayZ server",
|
||||||
value: "ban-player",
|
value: "ban-player",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "gamertag of the player to ban.",
|
description: "gamertag of the player to ban.",
|
||||||
@@ -54,7 +54,7 @@ module.exports = {
|
|||||||
name: "unban-player",
|
name: "unban-player",
|
||||||
description: "Unban a player from the DayZ server",
|
description: "Unban a player from the DayZ server",
|
||||||
value: "unban-player",
|
value: "unban-player",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "gamertag",
|
name: "gamertag",
|
||||||
description: "gamertag of the player to unban.",
|
description: "gamertag of the player to unban.",
|
||||||
@@ -67,17 +67,17 @@ module.exports = {
|
|||||||
name: "restart",
|
name: "restart",
|
||||||
description: "Restart the DayZ Server",
|
description: "Restart the DayZ Server",
|
||||||
value: "restart",
|
value: "restart",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}, {
|
}, {
|
||||||
name: "auto-restart",
|
name: "auto-restart",
|
||||||
description: "Enable/Disable periodic server checks and restart if stopped",
|
description: "Enable/Disable periodic server checks and restart if stopped",
|
||||||
value: "auto-restart",
|
value: "auto-restart",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
}, {
|
}, {
|
||||||
name: "disable-base-damage",
|
name: "disable-base-damage",
|
||||||
description: "Disable/Enable base damage",
|
description: "Disable/Enable base damage",
|
||||||
value: "disable-base-damage",
|
value: "disable-base-damage",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "preference",
|
name: "preference",
|
||||||
description: "DisableBaseDamage Preference",
|
description: "DisableBaseDamage Preference",
|
||||||
@@ -89,7 +89,7 @@ module.exports = {
|
|||||||
name: "disable-container-damage",
|
name: "disable-container-damage",
|
||||||
description: "Disable/Enable container damage",
|
description: "Disable/Enable container damage",
|
||||||
value: "disable-container-damage",
|
value: "disable-container-damage",
|
||||||
type: ApplicationCommandOptionType.SubCommand,
|
type: ApplicationCommandOptionType.Subcommand,
|
||||||
options: [{
|
options: [{
|
||||||
name: "preference",
|
name: "preference",
|
||||||
description: "disableContainerDamage Preference",
|
description: "disableContainerDamage Preference",
|
||||||
|
|||||||
Reference in new issue
Block a user