김건

add /t command information

Showing 1 changed file with 6 additions and 0 deletions
......@@ -137,3 +137,9 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => {
translate(received_msg, chatId);
}
});
bot.onText(/^\/(h|help)/, (msg, match) => {
const chatId = msg.chat.id;
const helpText = "/t\nIt can Translate Korean into English or the language of other countries into Korean.\
\nusage: /t [msg] or reply /t"
bot.sendMessage(chatId, helpText);
});
\ No newline at end of file
......