- Send any soundfile through the queue using FFMPEG
- Uses protodef to define the protocol
- Queue system for soundfiles
- Compile with
tsc --skipLibCheck
- put the mineflayer-simple-voice-chat folder into your project folder
A bot that plays a sound file on connecting to voice chat
const mineflayer = require('mineflayer');
const simple_voice_chat = require('./mineflayer-simple-voice-chat')
let bot = mineflayer.createBot({
host: 'localhost'
});
bot.loadPlugin(simple_voice_chat.plugin)
bot.on("audio_player_initialised", () => {
bot.simple_voice_chat.AudioPlayer.enQueue("music.mp3")
})
bot.on("voicechat_sound", (data) => {
})
- Forester302 - Made the plugin