mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Add a bunch of report shortcut subcommands
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class FeedbackCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'feedback',
|
||||
group: 'util-public',
|
||||
description: 'Shortcut to send feedback.',
|
||||
guarded: true,
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return this.client.registry.commands.get('report').run(msg, { reason: 'feedback', message });
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class ReportAbuseCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'report-abuse',
|
||||
aliases: ['abuse'],
|
||||
group: 'util-public',
|
||||
description: 'Shortcut to report abuse.',
|
||||
guarded: true,
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return this.client.registry.commands.get('report').run(msg, { reason: 'abuse', message });
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class ReportBugCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'report-bug',
|
||||
aliases: ['bug', 'report-suggestion'],
|
||||
group: 'util-public',
|
||||
description: 'Shortcut to report a bug.',
|
||||
guarded: true,
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return this.client.registry.commands.get('report').run(msg, { reason: 'bug', message });
|
||||
}
|
||||
};
|
||||
@@ -8,7 +8,7 @@ module.exports = class ReportCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'report',
|
||||
aliases: ['bug', 'report-bug', 'feedback', 'contact', 'suggest', 'suggestion', 'abuse', 'report-abuse'],
|
||||
aliases: ['contact'],
|
||||
group: 'util-public',
|
||||
description: 'Reports something to the bot owner(s).',
|
||||
guarded: true,
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class SuggestCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'suggest',
|
||||
aliases: ['suggestion'],
|
||||
group: 'util-public',
|
||||
description: 'Shortcut to suggest new features.',
|
||||
guarded: true,
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return this.client.registry.commands.get('report').run(msg, { reason: 'suggestion', message });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user