LinkUp-P2P-Chat/chatBot/commands/hello.js

8 lines
251 B
JavaScript

export default {
name: 'hello',
description: 'Greet the user',
handler: function(bot, args, message) {
const userName = message.name;
bot.sendMessage(message.peers, `Hello, ${userName}! How can I assist you today?`);
}
};