mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Remove nsfw/useless commands, refactor stuff
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class BCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: '🅱',
|
||||
group: 'text-edit',
|
||||
memberName: '🅱',
|
||||
description: 'Replaces b with 🅱.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to 🅱?',
|
||||
type: 'string',
|
||||
validate: text => {
|
||||
if (text.replace(/b/gi, '🅱').length < 2000) return true;
|
||||
return 'Invalid text, your text is too long.';
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
return msg.say(text.replace(/b/gi, '🅱'));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user