mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
23 lines
443 B
JavaScript
23 lines
443 B
JavaScript
const Command = require('../../framework/Command');
|
|
const { hash } = require('../../util/Util');
|
|
|
|
module.exports = class SHA1Command extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'sha-1',
|
|
group: 'edit-text',
|
|
description: 'Creates a hash of text with the SHA-1 algorithm.',
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
type: 'string'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { text }) {
|
|
return msg.say(hash(text, 'sha1'));
|
|
}
|
|
};
|