2022-12-24 00:59:52 -05:00
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 ,
2022-12-14 08:51:30 -05:00
execute ( bot , username , 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 : ` 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-12-14 08:51:30 -05:00
discordExecute ( bot , username , sender , prefix , args , channeldc , message , config ) {
2022-12-24 00:59:52 -05:00
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 ] } )
}
}