Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilkuan/stepn-updater
https://github.com/neilkuan/stepn-updater
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/neilkuan/stepn-updater
- Owner: neilkuan
- License: apache-2.0
- Created: 2022-05-11T15:12:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T00:17:20.000Z (10 days ago)
- Last Synced: 2024-10-27T15:17:37.340Z (10 days ago)
- Language: TypeScript
- Size: 3.45 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stepn Notify bot
![](./1.png)## Init
- Create a telegram bot from `botFather`, and get the `HTTP_TOKEN`(TELEGRAM_NOTIFY).
![](./2.png)- export `TELEGRAM_NOTIFY` in your shell.
```bash
export TELEGRAM_NOTIFY=1234456789:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
```## To Install
```bash
yarn
```## To testing
```bash
yarn test
```## To deploy
```bash
npx cdk deploy
```## Setting Telegram Bot webhook
```bash
curl \
"https://api.telegram.org/bot${TELEGRAM_NOTIFY}/setWebhook?url=${Lambda_Function_URL}"
---
{"ok":true,"result":true,"description":"Webhook was set"}
```## To destroy
```bash
npx cdk destroy
```