mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
6895a37104
i totally did not used the search icon thing in vscode
29 lines
984 B
JavaScript
29 lines
984 B
JavaScript
/* eslint-disable max-len */
|
|
const changelog = require('../changelog.json');
|
|
const {MessageEmbed} = require('discord.js');
|
|
module.exports = {
|
|
name: 'changelog',
|
|
alias: ['changelogs'],
|
|
description: 'Shows the bot\'s changelog',
|
|
usage: '',
|
|
trusted: 0,
|
|
execute: function(bot) {
|
|
bot.tellraw('@a', [{text: 'Changelogs:', color: 'green'}]);
|
|
changelog.forEach((message, number) => {
|
|
number += 1;
|
|
bot.tellraw('@a', [{text: `${number}`, color: 'gray'}, {text: ' - ', color: 'dark_gray'}, {text: message, color: 'gray'}]);
|
|
});
|
|
},
|
|
discordExecute: function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
|
changelogs = '';
|
|
changelog.forEach((message, number) => {
|
|
number += 1;
|
|
changelogs += `\`${number}\` - \`${message}\`` + '\n';
|
|
});
|
|
const Embed = new MessageEmbed()
|
|
.setColor('#FFFF00')
|
|
.setTitle('Changelogs')
|
|
.setDescription(changelogs);
|
|
channeldc.send({embeds: [Embed]});
|
|
},
|
|
};
|