mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Sha1 Command
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { hash } = require('../../util/Util');
|
||||
|
||||
module.exports = class SHA1Command extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'sha-1',
|
||||
aliases: ['sha-1-hash'],
|
||||
group: 'text-edit',
|
||||
memberName: 'sha-1',
|
||||
description: 'Creates a hash of text with the SHA-1 algorithm.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to create an SHA-1 hash of?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
return msg.say(hash(text, 'sha1'));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user