changelogs update!!!

This commit is contained in:
ChomeNS 2022-11-18 15:45:29 +07:00
parent a251eac621
commit 6df23b4a6e
2 changed files with 21 additions and 6 deletions

View file

@ -1,6 +1,8 @@
[
"Discord *list fixed (finally)",
"Discord !list fixed (finally)",
"Added *draw",
"More commands support added to Discord",
"Music queue added"
"Music queue added",
"Added *netmsg",
"Fixed hashing"
]

View file

@ -8,21 +8,34 @@ module.exports = {
usage: '',
trusted: 0,
execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
bot.tellraw(selector, [{text: 'Changelogs:', color: 'green'}]);
const component = [];
component.push({text: 'Changelogs ', color: 'green'});
component.push({text: '(', color: 'dark_gray'});
component.push({text: changelog.length, color: 'gray'});
component.push({text: ')', color: 'dark_gray'});
component.push({text: ':', color: 'gray'});
component.push('\n');
changelog.forEach((message, number) => {
number += 1;
bot.tellraw(selector, [{text: `${number}`, color: 'gray'}, {text: ' - ', color: 'dark_gray'}, {text: message, color: 'gray'}]);
component.push({text: number, color: 'gray'});
component.push({text: ' - ', color: 'dark_gray'});
component.push({text: message, color: 'gray'});
component.push('\n');
});
component.pop();
bot.tellraw(selector, component);
},
discordExecute: function(bot, username, usernameraw, sender, prefix, args, channeldc) {
changelogs = '';
let changelogs = '';
changelog.forEach((message, number) => {
number += 1;
changelogs += `\`${number}\` - \`${message}\`` + '\n';
});
const Embed = new MessageEmbed()
.setColor('#FFFF00')
.setTitle('Changelogs')
.setTitle(`Changelogs (${changelog.length})`)
.setDescription(changelogs);
channeldc.send({embeds: [Embed]});
},