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