mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class UnspoilerCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'unspoiler',
|
||||
group: 'edit-text',
|
||||
memberName: 'unspoiler',
|
||||
description: 'Removes all spoilers from a message.',
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
prompt: 'What message would you like to unspoiler?',
|
||||
type: 'message'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return msg.say(message.content.replace(/\|\|([^|]+)\|\|/g, '$1'));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user