Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Heroku #25

Merged
merged 11 commits into from
Apr 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
language: node_js
node_js: 8

node_js: 12
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: micro-bot -p $PORT
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@

A Telegram bot that searches Wikipedia (via WikiData) for people and informs you if they're dead or alive. Inspired by [@roguehousewife](https://twitter.com/roguehousewife)'s inability to remember if any celebrity is dead or alive.

Thanks to [@JonShort](https://github.com/JonShort) for the logo.
Thanks to [@JonShort](https://github.com/JonShort) for the logo and code.

Known as [@dead_or_alive_bot](http://t.me/dead_or_alive_bot) on Telegram.


## Usage

* Query via direct message
Expand All @@ -39,7 +38,7 @@ BOT_TOKEN_DEV=1234567:AAGdsf08sg9897fsdD89fsD
Then run either:
- `npm run debug` - debug the bot locally.
- `npm run start` - run the bot in production.
> note - production requires the `NOW_URL` env var to be configured
> note - production requires the `BOT_URL` env var to be configured

## FAQ

Expand All @@ -55,16 +54,6 @@ Then run either:
> note - bot tokens can be managed by running the command `/mybots` within botfather.
</details>


<details>
<summary>
I want to deploy to now
</summary>

Deploy with your bot token as an environment variable:
now -e BOT_TOKEN='1234567:AAGdsf08sg9897fsdD89fsD'
</details>

---
<p align="center">
<b>By Weiran Zhang</b><br>
Expand Down
Loading