基于 tw-stock-telegram-bot 修改。
TG 机器人,快速取得个股及大盘即时走势、近期 K 线、相关新闻、盘后资料等,让你在各种不方便打开充满高对比红绿黑看盘软件的场合 (如拥挤的捷运上或办公室而且老板坐你后面) 也能掌握即时报价资讯。
@LeekHubBot
https://t.me/LeekHubBot
(学术研究开发测试使用,不提供 24/7 不中断服务,亦不保证资料之正确性)
请先找到 @BotFather
建立新的 Bot 取得 API token,应用 inline mode 以及设定 commands (/setcommands
)
git clone https://github.com/x3388638/tw-stock-telegram-bot.git
cd tw-stock-telegram-bot
cp config.js.example config.js
# 将 Bot API token 填入 config.js 中 `botToken`
npm run build
npm start
或
npm install
npm run dev:watch
https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-started
Install the Heroku CLI
Download and install the Heroku CLI.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
You must have Docker set up locally to continue. You should see output when you run this command.
$ docker ps
Now you can sign into Container Registry.
$ heroku container:login
Build the Dockerfile in the current directory and push the Docker image.
$ heroku container:push web
Release the newly pushed images to deploy your app.
$ heroku container:release web
MIT