const { literal } = require('brigadier-commands') const pkg = require('../package.json') module.exports = { register (dispatcher) { const node = dispatcher.register( literal('credits') .executes(this.creditsCommand) ) node.description = 'Lists people who have contributed to the bot' node.permissionLevel = 0 }, creditsCommand (context) { const source = context.source const bot = source.bot source.sendFeedback([ { text: '', color: 'gray' }, { text: 'Credits\n', ...bot.styles.primary, bold: true }, { text: '_ChipMC_', color: 'blue' }, ' - creating the bot\n', { text: 'hhhzzzsss', color: 'aqua', bold: true }, ' and ', { text: 'eva', color: 'light_purple', italic: true }, ' - creating the midi converter.\n', { text: 'ma', color: 'aqua' }, { text: 'ni', color: 'light_purple' }, { text: 'a', color: 'white' }, { text: 'pl', color: 'light_purple' }, { text: 'ay', color: 'aqua' }, ' and ', { text: 'ayunami2000', color: 'red' }, ' - creating the image converter', '\n\nDependencies: ' + Object.entries(pkg.dependencies).map(entry => entry.join(' ')).join(', ') ], false) } }