customize and random, also some modifications on help.js

This commit is contained in:
GiovaniFZ 2024-06-01 22:45:40 -03:00
parent 57154bcb70
commit 1587de66c8
5 changed files with 205 additions and 6 deletions

24
src/commands/customize.js Normal file
View file

@ -0,0 +1,24 @@
module.exports = function(bot, msg) {
const chatId = msg.chat.id;
const userName = msg.from.first_name;
const userId = msg.from.id;
const opts = {
reply_to_message_id: msg.message_id,
reply_markup: {
resize_keyboard: true,
one_time_keyboard: true,
keyboard: [
[{text: 'He/Him'}],
[{text: 'She/Her'}],
[{text: 'They/Them'}],
],
}
};
const message = "Select your pronouns:";
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
.catch(error => console.error('ERROR: Message cannot be sent:', error));
console.log(`INFO: /customize executed by ${userName}, ${userId}`);
}