mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
18 lines
418 B
JavaScript
18 lines
418 B
JavaScript
const Command = require('../../framework/Command');
|
|
const crypto = require('crypto');
|
|
|
|
module.exports = class SecurityKeyCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'security-key',
|
|
aliases: ['crypto', 'random-bytes'],
|
|
group: 'random-res',
|
|
description: 'Responds with a random security key.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(crypto.randomBytes(15).toString('hex'));
|
|
}
|
|
};
|