chomens-bot-js/commands/botuser.js

20 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-08-14 05:51:45 -04:00
/* eslint-disable max-len */
2022-11-27 02:35:28 -05:00
const { MessageEmbed } = require('discord.js')
2022-08-14 05:51:45 -04:00
module.exports = {
name: 'botuser',
alias: [],
description: 'Shows the bot\'s username and UUID',
usage: '',
trusted: 0,
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
2022-11-27 02:35:28 -05:00
bot.tellraw(selector, [{ text: 'The bot\'s username is: ', color: 'white' }, { text: `${bot.username}`, color: 'gold', clickEvent: { action: 'copy_to_clipboard', value: `${bot.username}` }, hoverEvent: { action: 'show_text', contents: [{ text: 'Click here to copy the username to your clipboard', color: 'green' }] } }, { text: ' and the UUID is: ' }, { text: `${bot.uuid}`, color: 'aqua', clickEvent: { action: 'copy_to_clipboard', value: `${bot.uuid}` }, hoverEvent: { action: 'show_text', contents: [{ text: 'Click here to copy the UUID to your clipboard', color: 'green' }] } }])
2022-10-14 04:46:41 -04:00
},
discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) {
2022-10-14 04:46:41 -04:00
const Embed = new MessageEmbed()
2022-11-27 02:35:28 -05:00
.setColor('#FFFF00')
.setTitle('Bot\'s User')
.setDescription(`The bot's username is: \`${bot.username}\` and the UUID is: \`${bot.uuid}\``)
channeldc.send({ embeds: [Embed] })
}
}