chomens-bot-js/commands/validate.js

15 lines
447 B
JavaScript
Raw Permalink Normal View History

2022-08-14 05:51:45 -04:00
module.exports = {
name: 'validate',
description: 'Validates a hash',
alias: ['checkhash'],
usage: '<hash|ownerHash>',
2022-08-14 05:51:45 -04:00
trusted: 1,
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
}
}