mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
remove changelogs because it is kinda unused
This commit is contained in:
parent
55e11f5809
commit
bade4a4b89
2 changed files with 0 additions and 49 deletions
|
@ -1,8 +0,0 @@
|
|||
[
|
||||
"Added even more Discord commands support",
|
||||
"1.19 Support",
|
||||
"*music play file autocomplete",
|
||||
"Improved URL loading in *draw and *music playurl",
|
||||
"You can now do *clearchat [player] without \"specific\"",
|
||||
"Added .nbs and .txt support for music command"
|
||||
]
|
|
@ -1,41 +0,0 @@
|
|||
const changelog = require('../changelog.json')
|
||||
const { EmbedBuilder } = require('discord.js')
|
||||
module.exports = {
|
||||
name: 'changelog',
|
||||
alias: ['changelogs'],
|
||||
description: 'Shows the bot\'s changelog',
|
||||
usage: '',
|
||||
trusted: 0,
|
||||
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||
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
|
||||
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 (bot, username, sender, prefix, args, channeldc, message, config) {
|
||||
let changelogs = ''
|
||||
changelog.forEach((message, number) => {
|
||||
number += 1
|
||||
changelogs += `\`${number}\` - \`${message}\`` + '\n'
|
||||
})
|
||||
const Embed = new EmbedBuilder()
|
||||
.setColor(config.discord.embedsColors.normal)
|
||||
.setTitle(`Changelogs (${changelog.length})`)
|
||||
.setDescription(changelogs)
|
||||
channeldc.send({ embeds: [Embed] })
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue