Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Connect to NOW #19

Open
adrientiburce opened this issue Dec 27, 2018 · 1 comment
Open

Connect to NOW #19

adrientiburce opened this issue Dec 27, 2018 · 1 comment

Comments

@adrientiburce
Copy link

I create a simple Micro-Bot following the ReadMe,
I tried to deploy it using Now but I don't get it :
My Bot is deployed, I used now -e BOT_TOKEN='YOUR BOT TOKEN'
When I go to https://api.telegram.org/bot/getWebhookinfo I see this :
image

My bot in just not responding unless I type BOT_TOKEN='TOKEN' npm start how can I make it running without having to do this ?
Thanks for your help

@Samleo8
Copy link

Samleo8 commented Mar 7, 2019

Perhaps you can try adding scripts to your package.json

"scripts": {
    "now-start": "micro-bot -t {BOT_TOKEN}",
    "start": "now -e BOT_TOKEN=@secret-api-key --public"
  }

Check out this on how to setup your secret now key.

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

2 participants