Adding proper support for audio messages via bot
This commit is contained in:
10
chatBot/commands/test-audio.js
Normal file
10
chatBot/commands/test-audio.js
Normal 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);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user