chomens-bot-js/commands/test.js

36 lines
1 KiB
JavaScript
Raw Normal View History

const { EmbedBuilder } = require('discord.js')
2022-08-14 05:51:45 -04:00
module.exports = {
name: 'test',
alias: [],
description: 'Tests if the bot is working',
usage: '',
trusted: 0,
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
2022-11-16 06:41:30 -05:00
bot.tellraw(selector, [
{
text: `Username: ${username},`,
2022-11-27 02:35:28 -05:00
color: 'green'
},
{
text: ` Sender UUID: ${sender},`,
2022-11-27 02:35:28 -05:00
color: 'green'
},
{
text: ` Prefix: ${prefix},`,
2022-11-27 02:35:28 -05:00
color: 'green'
},
{
text: ` Args: ${args.join(', ').toString()}`,
2022-11-27 02:35:28 -05:00
color: 'green'
}
])
2022-08-14 05:51:45 -04:00
},
discordExecute (bot, username, sender, prefix, args, channeldc, message, config) {
const Embed = new EmbedBuilder()
2022-12-01 05:15:30 -05:00
.setColor(config.discord.embedsColors.normal)
2022-11-27 02:35:28 -05:00
.setTitle('Hello!')
.setDescription('This is the first ever command to be discordified!' + '\n' + `More info: Username: ${username}, Prefix: ${prefix}, Args: ${args.join(' ')}`)
channeldc.send({ embeds: [Embed] })
}
}