mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
16 lines
505 B
JavaScript
16 lines
505 B
JavaScript
module.exports = {
|
|
name: 'validate',
|
|
description: 'Validates hash',
|
|
alias: [],
|
|
usage: '<hash>',
|
|
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' })
|
|
} else {
|
|
bot.tellraw(selector, { text: 'Invalid hash', color: 'red' })
|
|
}
|
|
}
|
|
}
|