chipmunkbot3/commands/credits.js
2024-07-31 22:34:19 -04:00

43 lines
1.2 KiB
JavaScript

const { literal } = require('brigadier-commands')
const pkg = require('../package.json')
module.exports = {
register (dispatcher) {
const node = dispatcher.register(
literal('credits')
.executes(c => this.creditsCommand(c))
)
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)
}
}