template-bot
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "template-bot", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Scaffolding out a Telegram bot", | ||
@@ -5,0 +5,0 @@ "author": "Vitaly Domnikov <dotcypress@gmail.com>", |
@@ -9,5 +9,5 @@ # template-bot | ||
- ▲ Build with [micro-bot](https://github.com/telegraf/micro-bot) | ||
- 📖 Lint with [standard](https://github.com/feross/standard) | ||
- 📜 README with instant [now](https://zeit.co/now) deployment buttons | ||
- Build with [micro-bot](https://github.com/telegraf/micro-bot) | ||
- Lint with [standard](https://github.com/feross/standard) | ||
- README with instant [now](https://zeit.co/now) deployment buttons | ||
@@ -28,2 +28,2 @@ ## Usage | ||
$ sao bot | ||
`` | ||
``` |
@@ -1,1 +0,7 @@ | ||
module.exports = ({ reply }) => reply('42') | ||
const { Composer, log } = require('micro-bot') | ||
const bot = new Composer() | ||
bot.use(log()) | ||
bot.command('start', ({ reply }) => reply('Hey!')) | ||
module.exports = bot |
{ | ||
"name": "<%= name %>", | ||
"version": "1.0.0", | ||
"version": "0.0.0", | ||
"description": "<%= description %>", | ||
@@ -11,5 +11,6 @@ "repository": { | ||
"scripts": { | ||
"test": "npm run lint", | ||
"dev": "supervisor -x micro-bot index.js", | ||
"start": "micro-bot -d ${NOW_URL}", | ||
"lint": "eslint .", | ||
"start": "micro-bot" | ||
"test": "npm run lint" | ||
}, | ||
@@ -30,4 +31,5 @@ "engines": { | ||
"eslint-plugin-promise": "^3.0.0", | ||
"eslint-plugin-standard": "^3.0.1" | ||
"eslint-plugin-standard": "^3.0.1", | ||
"supervisor": "^0.12.0" | ||
} | ||
} |
@@ -12,6 +12,11 @@ <% const camelcasedName = this.camelcase(name) -%> | ||
```sh | ||
$ npm install --global micro-bot | ||
$ micro-bot | ||
$ npm install | ||
$ BOT_TOKEN='123:......' npm run dev | ||
``` | ||
```sh | ||
$ yarn | ||
$ BOT_TOKEN='123:......' yarn dev | ||
``` | ||
## Deployment | ||
@@ -18,0 +23,0 @@ |
5803
41