FridayNightFunkinBoyfriendBot/commands/validate.js

36 lines
985 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
module.exports = {
name: 'validate',
description:['validate in the bot'],
2023-12-20 11:54:03 -05:00
trustLevel: 1,
2023-12-17 14:55:27 -05:00
aliases:['val'],
execute (context) {
const source = context.source
const bot = context.bot
const hash = bot.hash
const args = context.arguments
const ownerhash = bot.owner
2023-12-26 18:45:18 -05:00
const discordHash = bot.hashing.hash
2023-12-17 14:55:27 -05:00
if (args[0] === hash) {
if(!bot.options.Core.CorelessMode){
bot.chat('&aValid Hash')
}else{
source.sendFeedback({ text: 'Valid Hash', color: 'green' })
}
2023-12-26 18:45:18 -05:00
}else if (args[0] === ownerhash) {
if(!bot.options.Core.CorelessMode){
bot.chat('&aValid Owner Hash')
}else{
source.sendFeedback({text: 'Valid Owner Hash', color:'green'})
2023-12-26 18:45:18 -05:00
}
2023-12-17 14:55:27 -05:00
}
else if (discordHash) {
if(!bot.options.Core.CorelessMode){
bot.chat('&aValid Hash')
}else{
source.sendFeedback({ text: 'Valid Hash', color: 'green' })
}
}
2023-12-17 14:55:27 -05:00
}
}
//if (args[0] === hash) {