23 lines
557 B
JavaScript
23 lines
557 B
JavaScript
const name = 'badapple'
|
|
const description = 'Plays a badapple video.'
|
|
const usages = ['[stop]']
|
|
const aliases = ['badapple']
|
|
const enabled = true
|
|
|
|
const permLevel = 0
|
|
|
|
function execute (bot, cmd, player, args) {
|
|
if (args[0] === 'stop') {
|
|
bot.video.stop()
|
|
bot.music.skip()
|
|
return
|
|
}
|
|
|
|
bot.video.summon(player.UUID, (uuids) => {
|
|
bot.music.stop()
|
|
bot.music.queue.push('./music/badapple.mid')
|
|
bot.video.play('./videos/badapple.txt', uuids)
|
|
})
|
|
}
|
|
|
|
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }
|