LinkUp-P2P-Chat/chatBot/commands/test-audio.js

10 lines
351 B
JavaScript
Raw Permalink Normal View History

export default {
2024-06-15 03:28:36 -04:00
handler: function(bot, args, message) {
// Specify the path to the audio file you want to send
const audioFilePath = '/to/file/path.mp3'; // Replace with the actual audio file path
const audioType = 'audio';
2024-06-15 03:20:52 -04:00
2024-06-15 03:28:36 -04:00
// Send the audio message using the bot instance
bot.sendAudioMessage(audioFilePath, audioType);
}
};