chomens-bot-js/commands/validate.js
ChomeNS e6773a9f62 change hashing check in cmd handler a bit
idk a rewrite already exist but idk idk
2023-03-13 14:57:31 +07:00

14 lines
447 B
JavaScript

module.exports = {
name: 'validate',
description: 'Validates a hash',
alias: ['checkhash'],
usage: '<hash|ownerHash>',
trusted: 1,
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
if (args[0] === hash) {
bot.tellraw(selector, { text: 'Valid hash', color: 'green' })
} else if (args[0] === ownerhash) {
bot.tellraw(selector, { text: 'Valid OwnerHash', color: 'green' })
}
}
}