mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -14,7 +14,6 @@ module.exports = class CommandLeaderboardCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'page',
|
||||
prompt: 'What page do you want to view?',
|
||||
type: 'integer',
|
||||
default: 1,
|
||||
min: 1
|
||||
|
||||
@@ -13,12 +13,10 @@ module.exports = class CreditCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'Which command would you like to view the credits list of?',
|
||||
type: 'command'
|
||||
},
|
||||
{
|
||||
key: 'page',
|
||||
prompt: 'What page do you want to view?',
|
||||
type: 'integer',
|
||||
default: 1,
|
||||
min: 1
|
||||
|
||||
@@ -14,7 +14,6 @@ module.exports = class GroupLeaderboardCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'page',
|
||||
prompt: 'What page do you want to view?',
|
||||
type: 'integer',
|
||||
default: 1,
|
||||
min: 1
|
||||
|
||||
@@ -14,7 +14,6 @@ module.exports = class HelpCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'Which command would you like to view the help for?',
|
||||
type: 'command',
|
||||
default: ''
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ module.exports = class LastRunLeaderboardCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'page',
|
||||
prompt: 'What page do you want to view?',
|
||||
type: 'integer',
|
||||
default: 1,
|
||||
min: 1
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class LastRunCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'Which command would you like to view the last run date of?',
|
||||
type: 'command'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { list } = require('../../util/Util');
|
||||
const reasons = ['bug', 'feedback', 'suggestion', 'abuse'];
|
||||
const reasonColors = ['RED', 'GREEN', 'YELLOW', 'ORANGE'];
|
||||
const displayReasons = ['🐛 Bug Report', '📬 Feedback', '❓ Suggestion', '⚠️ Abuse'];
|
||||
@@ -17,14 +16,12 @@ module.exports = class ReportCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'reason',
|
||||
prompt: `What is the reason for your report? Either ${list(reasons, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: reasons,
|
||||
parse: reason => reasons.indexOf(reason.toLowerCase())
|
||||
},
|
||||
{
|
||||
key: 'message',
|
||||
prompt: 'What is the message of your report? If you are reporting abuse, be sure to include IDs.',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class UsesCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'command',
|
||||
prompt: 'Which command would you like to view the uses of?',
|
||||
type: 'command'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user