Adding proper support for audio messages via bot

This commit is contained in:
Raven Scott
2024-06-15 03:03:43 -04:00
parent 2cf819553a
commit 487bc13970
3 changed files with 33 additions and 5 deletions

View File

@ -0,0 +1,10 @@
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'; // Specify the correct audio file type
// Send the audio message using the bot instance
bot.sendAudioMessage(audioFilePath, audioType);
}
};