mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
🅱
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class BCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'b',
|
||||
aliases: [':b:'],
|
||||
group: 'text-edit',
|
||||
memberName: 'b',
|
||||
description: ':b:.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to :b:?',
|
||||
type: 'string',
|
||||
validate: text => {
|
||||
if (text.replace(/(b|d|e|f|g|p|q)/gi, ':b:').length < 2000) return true;
|
||||
return 'Your text is too long';
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
return msg.say(text.replace(/(b|d|e|f|g|p|q)/gi, ':b:'));
|
||||
}
|
||||
};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "37.3.0",
|
||||
"version": "37.4.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user