FridayNightFunkinBoyfriendBot/commands/list.js

35 lines
552 B
JavaScript
Raw Normal View History

2024-02-20 11:58:22 -05:00
const CommandError = require('../CommandModules/command_error')
module.exports = {
name: 'list',
execute (context) {
const bot = context.bot
const players = bot.players
const component = []
for (const player of players) {
component.push({
translate: '%s \u203a %s',
with: [
player.displayName ?? player.profile.name,
player.uuid
]
})
component.push('\n')
}
component.pop()
context.source.sendFeedback(component, false)
}
}
//what is wi
// IDK