diff --git a/index.js b/index.js index 9f1b40b..f08a858 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const TelegramBot = require( `node-telegram-bot-api` ) -const TOKEN = `275399831:AAHvjSOiGLxgXmff9wgdECdrZXfMtvnKURw` +const TOKEN = `7765965277:AAGCZ1PW6yz0mj8b-KcHPR2QPhxfVGhRWjw` const bot = new TelegramBot( TOKEN, { polling: true } ) @@ -9,6 +9,7 @@ bot.on( 'message', ( msg, match ) => { }) + // const log = ( msg ) => console.log( msg ) // const logSuccess = ( data ) => console.log( `Success: `, data ) @@ -51,4 +52,4 @@ bot.on( 'message', ( msg, match ) => { // .then( logSuccess ) // .catch( logError ) -// bot.onText( /\/ask (.*)/, sendMessage ) \ No newline at end of file +// bot.onText( /\/ask (.*)/, sendMessage ) diff --git a/readme.md b/readme.md index 20c843c..ce58669 100644 --- a/readme.md +++ b/readme.md @@ -283,6 +283,8 @@ Para criarmos um comando para fazer uma busca usaremos o [axios](https://www.npm Porém quando requisitamos `nomadev` ao Google e pegamos o atributo `href`: +![print screen](http://i.imgur.com/ksgH8Pj.png) + ```js http.get( URL_BASE + match[ 1 ] )