mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
MD5
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const crypto = require('crypto');
|
||||
|
||||
module.exports = class MD5Command extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'md5',
|
||||
aliases: ['md5-hash'],
|
||||
group: 'text-edit',
|
||||
memberName: 'md5',
|
||||
description: 'Creates a hash of text with the MD5 algorithm.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to create an MD5 hash of?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
return msg.say(crypto.createHash('md5').update(text).digest('hex'));
|
||||
}
|
||||
};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "56.1.0",
|
||||
"version": "56.2.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "XiaoBot.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user