chipmunkbot3/commands/myuser.js
2024-02-11 21:23:41 -05:00

17 lines
475 B
JavaScript

const name = 'myuser'
const description = 'Shows your username'
const usages = []
const aliases = ['myuser']
const enabled = true
const permLevel = 0
function execute (bot, cmd, player, args, handler) {
bot.core.run(`/tellraw @a ${JSON.stringify([
{ text: 'Your username is: ', color: bot.colors.primary },
{ text: player.name, color: bot.colors.secondary },
'.'
])}`)
}
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }