2024-04-02 17:53:10 -04:00
|
|
|
const { literal } = require('brigadier-commands')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
register (dispatcher) {
|
|
|
|
const node = dispatcher.register(
|
|
|
|
literal('validate')
|
|
|
|
.requires(source => source.permissionLevel >= 1)
|
|
|
|
.executes(this.validateCommand)
|
|
|
|
)
|
|
|
|
|
|
|
|
node.description = 'Checks if a hash is valid'
|
|
|
|
node.permissionLevel = 1
|
|
|
|
},
|
2024-02-11 21:23:41 -05:00
|
|
|
|
2024-04-02 17:53:10 -04:00
|
|
|
validateCommand (context) {
|
|
|
|
const source = context.source
|
|
|
|
const bot = source.bot
|
|
|
|
|
|
|
|
source.sendFeedback({ text: 'Valid hash', ...bot.styles.primary }, false)
|
|
|
|
}
|
|
|
|
}
|