mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { list } = require('../../util/Util');
|
||||
const types = ['user', 'guild'];
|
||||
|
||||
module.exports = class BlacklistCommand extends Command {
|
||||
@@ -15,14 +14,12 @@ module.exports = class BlacklistCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What type do you want to blacklist? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
parse: type => type.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'target',
|
||||
prompt: 'Who do you want to blacklist? Use the ID.',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class EvalCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'script',
|
||||
prompt: 'What code would you like to evaluate?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class ExecCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'What command do you want to execute?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -14,12 +14,10 @@ module.exports = class LoadCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'group',
|
||||
prompt: 'Which group is the new command in?',
|
||||
type: 'group'
|
||||
},
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What is the new command\'s name?',
|
||||
type: 'string',
|
||||
parse: name => name.toLowerCase()
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ module.exports = class ReloadCommand extends Command {
|
||||
{
|
||||
key: 'command',
|
||||
label: 'command',
|
||||
prompt: 'Which command would you like to reload?',
|
||||
type: 'command'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { list } = require('../../util/Util');
|
||||
const types = ['reject', 'info', 'approve'];
|
||||
const typesColors = ['RED', 'YELLOW', 'GREEN'];
|
||||
const displaytypes = ['❌ Rejected', '❓ Need More Info', '✅ Accepted/Fixed'];
|
||||
@@ -19,19 +18,16 @@ module.exports = class ReportRespondCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
prompt: 'What user do you want to respond to?',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What is the reason for your report? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
parse: type => types.indexOf(type.toLowerCase())
|
||||
},
|
||||
{
|
||||
key: 'message',
|
||||
prompt: 'What response do you want to send?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -24,20 +24,17 @@ module.exports = class SetUsesCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'mode',
|
||||
prompt: 'Do you want to add, subtract, or set exact?',
|
||||
type: 'string',
|
||||
oneOf: modes,
|
||||
parse: mode => mode.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'What command do you want to modify?',
|
||||
type: 'command'
|
||||
},
|
||||
{
|
||||
key: 'num',
|
||||
label: 'number',
|
||||
prompt: 'How much do you want to change the usage?',
|
||||
type: 'integer',
|
||||
min: 1
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = class ShutdownCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'code',
|
||||
prompt: 'What code do you want to send to `process.exit`?',
|
||||
type: 'integer',
|
||||
default: 0
|
||||
}
|
||||
|
||||
@@ -16,14 +16,12 @@ module.exports = class UnblacklistCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What type do you want to unblacklist? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
parse: type => type.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'target',
|
||||
prompt: 'Who do you want to unblacklist? Use the ID.',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class UnloadCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'What is the command\'s name?',
|
||||
type: 'command'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user