2022-08-14 05:51:45 -04:00
|
|
|
module.exports = {
|
|
|
|
name: 'validate',
|
2023-03-13 03:57:31 -04:00
|
|
|
description: 'Validates a hash',
|
|
|
|
alias: ['checkhash'],
|
|
|
|
usage: '<hash|ownerHash>',
|
2022-08-14 05:51:45 -04:00
|
|
|
trusted: 1,
|
2022-12-14 08:51:30 -05:00
|
|
|
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
2022-11-16 06:09:37 -05:00
|
|
|
if (args[0] === hash) {
|
2022-11-27 02:35:28 -05:00
|
|
|
bot.tellraw(selector, { text: 'Valid hash', color: 'green' })
|
2022-11-16 06:09:37 -05:00
|
|
|
} else if (args[0] === ownerhash) {
|
2022-11-27 02:35:28 -05:00
|
|
|
bot.tellraw(selector, { text: 'Valid OwnerHash', color: 'green' })
|
2022-08-14 05:51:45 -04:00
|
|
|
}
|
2022-11-27 02:35:28 -05:00
|
|
|
}
|
|
|
|
}
|