forked from snxraven/LinkUp-P2P-Chat
correct support for sending files via the bot
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
// ping.js
|
||||
|
||||
export default {
|
||||
handler: function(bot, args, message) {
|
||||
bot.sendTextMessage('Pong!');
|
||||
}
|
||||
handler: function(bot, args, message) {
|
||||
// Specify the path to the file you want to send
|
||||
const filePath = '/Users/raven/chat/chatBot/commands/ping.js'; // Replace with the actual file path
|
||||
const fileType = 'text/html'; // Specify the correct file type
|
||||
|
||||
// Send the file message using the bot instance
|
||||
bot.sendFileMessage(filePath, fileType);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user