mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
33 lines
640 B
JavaScript
33 lines
640 B
JavaScript
const Command = require('../../framework/Command');
|
|
const Leet = require('../../structures/Leet');
|
|
|
|
module.exports = class LeetCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'leet',
|
|
aliases: ['l33t', 'leet-speak', 'l33t-speak', '1337', '1337-speak'],
|
|
group: 'edit-text',
|
|
description: 'Converts text to l33t speak.',
|
|
credit: [
|
|
{
|
|
name: '1337.me',
|
|
url: 'https://1337.me/',
|
|
reason: 'Code'
|
|
}
|
|
],
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
type: 'string',
|
|
max: 500
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { text }) {
|
|
const leet = new Leet(text);
|
|
return msg.say(leet.toLeet());
|
|
}
|
|
};
|