LinkUp-P2P-Chat/chatBot/commands/test-audio.js
2024-06-15 03:12:38 -04:00

10 lines
386 B
JavaScript

export default {
handler: function(bot, args, message) {
// Specify the path to the audio file you want to send
const audioFilePath = '/Users/raven/discord-linux.mp3'; // Replace with the actual audio file path
const audioType = 'audio';
// Send the audio message using the bot instance
bot.sendAudioMessage(audioFilePath, audioType);
}
};