template-bot
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "template-bot", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Scaffolding out a Telegram bot", | ||
@@ -9,3 +9,3 @@ "author": "Vitaly Domnikov <oss@gvitaly.codes>", | ||
"repository": { | ||
"url": "git+ssh://git@github.com/telegraf/template-bot", | ||
"url": "git+ssh://git@github.com/telegraf/template-bot.git", | ||
"type": "git" | ||
@@ -26,9 +26,9 @@ }, | ||
"camelcase": "^5.0.0", | ||
"superb": "^3.0.0" | ||
"superb": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.9.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint": "^6.7.1", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
@@ -35,0 +35,0 @@ "eslint-plugin-standard": "^4.0.0" |
# template-bot | ||
🚀 Kick-start a Telegram bot with `micro-bot` | ||
🚀 Kick-start a Telegram bot with `Telegraf` | ||
@@ -9,3 +9,3 @@ Based on [template-micro-service](https://github.com/tiaanduplessis/template-micro-service). | ||
- Build with [micro-bot](https://github.com/telegraf/micro-bot) | ||
- Build with [telegraf](https://github.com/telegraf/telegraf) | ||
- Lint with [standard](https://github.com/feross/standard) | ||
@@ -12,0 +12,0 @@ - README with instant [now](https://zeit.co/now) deployment buttons |
@@ -1,6 +0,6 @@ | ||
const { Composer, log, session } = require('micro-bot') | ||
const Composer = require('telegraf/composer') | ||
const session = require('telegraf/session') | ||
const bot = new Composer() | ||
bot.use(log()) | ||
bot.use(session()) | ||
@@ -7,0 +7,0 @@ |
@@ -11,5 +11,5 @@ { | ||
"scripts": { | ||
"dev": "supervisor -x micro-bot index.js", | ||
"start": "micro-bot", | ||
"now-start": "micro-bot -d ${NOW_URL}", | ||
"dev": "supervisor -x telegraf index.js", | ||
"start": "telegraf", | ||
"now-start": "telegraf -d ${NOW_URL}", | ||
"lint": "eslint .", | ||
@@ -24,9 +24,9 @@ "test": "npm run lint" | ||
"dependencies": { | ||
"micro-bot": "^2.5.1" | ||
"telegraf": "^3.34.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.9.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint": "^6.7.1", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
@@ -33,0 +33,0 @@ "eslint-plugin-standard": "^4.0.0", |
<% const camelcasedName = this.camelcase(name) -%> | ||
<% const normalUserName = username.toLowerCase() -%> | ||
# <%= name %> | ||
[](https://travis-ci.org/<%= normalUserName %>/<%= name %>) | ||
# <%= name %> | ||
[](https://deploy.now.sh/?repo=https://github.com/<%= normalUserName %>/<%= name %>) | ||
## Usage | ||
@@ -20,14 +18,1 @@ | ||
``` | ||
## Deployment | ||
This bot can be deployed to [now](https://zeit.co/now) by Zeit. | ||
Assuming you've got `now` installed and set up: | ||
```sh | ||
$ now -e BOT_TOKEN='123:......' <%= normalUserName %>/<%= name %> | ||
``` | ||
Alternative, deploy right now without even leaving the browser: | ||
[](https://deploy.now.sh/?repo=https://github.com/<%= normalUserName %>/<%= name %>) |
Sorry, the diff of this file is not supported yet
5545
+ Addedsuperb@4.0.0(transitive)
+ Addedunique-random@2.1.0(transitive)
+ Addedunique-random-array@2.0.0(transitive)
- Removedsuperb@3.0.0(transitive)
- Removedunique-random@1.0.0(transitive)
- Removedunique-random-array@1.0.1(transitive)
Updatedsuperb@^4.0.0