Files
xiao/commands/edit-text/md5.js
T
2024-03-30 00:30:52 -04:00

24 lines
459 B
JavaScript

const Command = require('../../framework/Command');
const { hash } = require('../../util/Util');
module.exports = class MD5Command extends Command {
constructor(client) {
super(client, {
name: 'md5',
group: 'edit-text',
memberName: 'md5',
description: 'Creates a hash of text with the MD5 algorithm.',
args: [
{
key: 'text',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(hash(text, 'md5'));
}
};