Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Notas #1

Open
UlisesGascon opened this issue Mar 9, 2019 · 3 comments
Open

Notas #1

UlisesGascon opened this issue Mar 9, 2019 · 3 comments

Comments

@UlisesGascon
Copy link
Contributor

https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php

@UlisesGascon
Copy link
Contributor Author

https://vorpal.js.org/

@UlisesGascon
Copy link
Contributor Author

https://www.npmjs.com/package/vorpal
npm install vorpal

js
const vorpal = require('vorpal')();
 
vorpal
  .command('foo', 'Outputs "bar".')
  .action(function(args, callback) {
    this.log('bar');
    callback();
  });
 
vorpal
  .delimiter('myapp$')
  .show();

@UlisesGascon
Copy link
Contributor Author

https://www.npmjs.com/package/telegraf

const Telegraf = require('telegraf')
 
const bot = new Telegraf(process.env.BOT_TOKEN)
bot.start((ctx) => ctx.reply('Welcome!'))
bot.help((ctx) => ctx.reply('Send me a sticker'))
bot.on('sticker', (ctx) => ctx.reply('👍'))
bot.hears('hi', (ctx) => ctx.reply('Hey there'))
bot.launch()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant