FridayNightFunkinBoyfriendBot/commands/memusage.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
const CommandError = require('../CommandModules/command_error')
module.exports = {
name: 'memusage',
//<< this one line of code broke it lmao
2023-12-20 11:54:03 -05:00
description:['check the bots memusage'],
trustLevel: 0,
2023-12-17 14:55:27 -05:00
aliases:['memoryusage', 'memused','memoryused'],
execute (context) {
const bot = context.bot
const source = context.source
const args = context.arguments
2024-01-12 12:24:01 -05:00
if (!args && !args[0] && !args[1] && !args[2] && !args[3] && !args[4] ) return
switch (args[0]) {
2023-12-17 14:55:27 -05:00
case 'on':
bot.memusage.on()
2024-01-12 12:24:01 -05:00
source.sendFeedback({text: 'Memusage is now enabled', color:'green'})
2023-12-17 14:55:27 -05:00
break
case 'off':
bot.memusage.off()
2024-01-12 12:24:01 -05:00
/ source.sendFeedback({text:'Memusage is now disabled', color:'red'})
2023-12-17 14:55:27 -05:00
break
default:
throw new CommandError('Invalid argument')
}
},
}
//[%s] %s %s
//was it showing like that before?
// just do text bc too sus rn ig
// You should remove the with thing and the translate and replace
// Parker, why is hashing just random characters???
//wdym