mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Leet Command
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
const Command = require('../../structures/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',
|
||||
memberName: 'leet',
|
||||
description: 'Converts text to l33t speak.',
|
||||
credit: [
|
||||
{
|
||||
name: '1337.me',
|
||||
url: 'https://1337.me/',
|
||||
reason: 'Code'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to convert to l33t speak?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
const leet = new Leet(text);
|
||||
return msg.say(leet.toLeet());
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user