2022-08-14 05:51:45 -04:00
/* eslint-disable max-len */
const { MessageEmbed } = require ( 'discord.js' ) ;
module . exports = {
name : 'test' ,
alias : [ ] ,
description : 'Tests if the bot is working' ,
usage : '' ,
trusted : 0 ,
2022-11-16 06:41:30 -05:00
execute : function ( bot , username , usernameraw , sender , prefix , args , config , hash , ownerhash , selector ) {
bot . tellraw ( selector , [
2022-11-07 06:43:17 -05:00
{
text : ` Username: ${ username } , ` ,
color : 'green' ,
} ,
{
text : ` Raw username: ${ usernameraw } , ` ,
color : 'green' ,
} ,
{
text : ` Sender UUID: ${ sender } , ` ,
color : 'green' ,
} ,
{
text : ` Prefix: ${ prefix } , ` ,
color : 'green' ,
} ,
{
text : ` Args: ${ args . join ( ', ' ) . toString ( ) } ` ,
color : 'green' ,
} ,
] ) ;
2022-08-14 05:51:45 -04:00
} ,
discordExecute : function ( bot , username , usernameraw , sender , prefix , args , channeldc ) {
const Embed = new MessageEmbed ( )
. 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 ] } ) ;
} ,
} ;