mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-17 19:02:22 -05:00
224d54cff3
after months fianally!!!!!
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/* eslint-disable max-len */
|
|
const {MessageEmbed} = require('discord.js');
|
|
module.exports = {
|
|
name: 'test',
|
|
alias: [],
|
|
description: 'Tests if the bot is working',
|
|
usage: '',
|
|
trusted: 0,
|
|
execute: function(bot, username, usernameraw, sender, prefix, args) {
|
|
bot.tellraw('@a', [
|
|
{
|
|
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',
|
|
},
|
|
]);
|
|
},
|
|
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]});
|
|
},
|
|
};
|