Created
November 3, 2016 03:40
-
-
Save nesffer/73f98bd1eda6ef36a23d37f975b68fff to your computer and use it in GitHub Desktop.
Revisions
-
Nesffer created this gist
Nov 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ bot.onText(/^(ping|핑)[!]?$/i, (msg, match) => { var messageId = msg.message_id; var chatId = msg.chat.id; if (match[1].match(/ping/i)) { bot.sendMessage(chatId, 'Ping!', {reply_to_message_id: messageId}); } else if (match[1].match(/핑/)) { bot.sendMessage(chatId, '퐁!', {reply_to_message_id: messageId}); } });