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 ,
2022-11-28 06:32:49 -05:00
execute ( bot , username , usernameraw , sender , prefix , args , config , hash , ownerhash , selector ) {
2022-11-16 06:41:30 -05:00
bot . tellraw ( selector , [
2022-11-07 06:43:17 -05:00
{
text : ` Username: ${ username } , ` ,
2022-11-27 02:35:28 -05:00
color : 'green'
2022-11-07 06:43:17 -05:00
} ,
{
text : ` Raw username: ${ usernameraw } , ` ,
2022-11-27 02:35:28 -05:00
color : 'green'
2022-11-07 06:43:17 -05:00
} ,
{
text : ` Sender UUID: ${ sender } , ` ,
2022-11-27 02:35:28 -05:00
color : 'green'
2022-11-07 06:43:17 -05:00
} ,
{
text : ` Prefix: ${ prefix } , ` ,
2022-11-27 02:35:28 -05:00
color : 'green'
2022-11-07 06:43:17 -05:00
} ,
{
text : ` Args: ${ args . join ( ', ' ) . toString ( ) } ` ,
2022-11-27 02:35:28 -05:00
color : 'green'
}
] )
2022-08-14 05:51:45 -04:00
} ,
2022-11-28 06:32:49 -05: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 ] } )
}
}