chomens-bot-js/commands/test.js

41 lines
1.1 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: 'test',
alias: [],
description: 'Tests if the bot is working',
usage: '',
trusted: 0,
execute (bot, username, usernameraw, 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: ` Raw username: ${usernameraw},`,
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, usernameraw, sender, prefix, args, channeldc) {
2022-08-14 05:51:45 -04:00
const Embed = new MessageEmbed()
2022-11-27 02:35:28 -05:00
.setColor('#FFFF00')
.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] })
}
}