All Projects → chen-tf → price-tracker-bot

chen-tf / price-tracker-bot

Licence: MIT license
Telegram 聊天機器人,追蹤momo降價、重新上架

Programming Languages

python
139335 projects - #7 most used programming language
PLpgSQL
1095 projects

Projects that are alternatives of or similar to price-tracker-bot

kuebikobot
A telegram bot that deploys to heroku/aws and downloads links and torrents and uploads to google drive and returns public share link
Stars: ✭ 127 (+135.19%)
Mutual labels:  heroku, telegram-bot
TG-FileStreamBot
Stream Telegram files to web
Stars: ✭ 193 (+257.41%)
Mutual labels:  heroku, telegram-bot
WilliamButcherBot
Telegram Group Manager Bot Written In Python Using Pyrogram.
Stars: ✭ 187 (+246.3%)
Mutual labels:  heroku, telegram-bot
slam-mirrorbot
Aria/qBittorrent Telegram mirror/leech bot.
Stars: ✭ 1,072 (+1885.19%)
Mutual labels:  heroku, telegram-bot
Heroku Node Telegram Bot
Starter pack for running telegram bot on the Heroku using Node.js
Stars: ✭ 128 (+137.04%)
Mutual labels:  heroku, telegram-bot
Maintain-Bot
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.
Stars: ✭ 46 (-14.81%)
Mutual labels:  heroku, telegram-bot
FileStreamBot
Telegram File to Link Fastest Bot , Its Generate Direct Links Quickly
Stars: ✭ 99 (+83.33%)
Mutual labels:  heroku, telegram-bot
PglRobot
No description or website provided.
Stars: ✭ 12 (-77.78%)
Mutual labels:  heroku, telegram-bot
Telegram Clonebot
Simple Bot to clone Google Drive Files (or Folders) to your Team Drive[or Normal Drive]. P.S This is not a Mirror Bot. Enjoy ✌🏻
Stars: ✭ 114 (+111.11%)
Mutual labels:  heroku, telegram-bot
Telepyrobot
A userbot for Telegram account made using Pyrogram Library and Python
Stars: ✭ 27 (-50%)
Mutual labels:  heroku, telegram-bot
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (+22.22%)
Mutual labels:  heroku, telegram-bot
Google Translater V2
Google Translater v2
Stars: ✭ 30 (-44.44%)
Mutual labels:  heroku, telegram-bot
DaisyX
“ HOLA HUMANS 👋 I'M DAISYX 2.0 heart „ LATEST VERSION OF DAISYX.. Source Code of @Daisyxbot
Stars: ✭ 44 (-18.52%)
Mutual labels:  heroku, telegram-bot
PDF-Bot
A bot for PDF for doing Many Things....
Stars: ✭ 38 (-29.63%)
Mutual labels:  heroku, telegram-bot
Feedback-bot
In Short This is An Personalized Livegram Bot Made Using Python.. Follow Me @HeimanPictures & Star This Repo
Stars: ✭ 23 (-57.41%)
Mutual labels:  heroku, telegram-bot
caligo
SelfBot for Telegram
Stars: ✭ 34 (-37.04%)
Mutual labels:  heroku, telegram-bot
TgTwitterStreamer
Continous Integration from Twitter to Telegram.
Stars: ✭ 55 (+1.85%)
Mutual labels:  heroku, telegram-bot
Userge
Userge, Durable as a Serge
Stars: ✭ 363 (+572.22%)
Mutual labels:  heroku, telegram-bot
TGInlineGIF
Telegram Inline tenor gif search bot.
Stars: ✭ 19 (-64.81%)
Mutual labels:  heroku, telegram-bot
binance-spot-order-notification-heoku
[binance order trade fill notification] Telegram Notification when Binance order created, cancelled or filled. Ready to Deploy on Heroku
Stars: ✭ 30 (-44.44%)
Mutual labels:  heroku, telegram-bot

簡介

price-tracker-bot is a telegram bot that can trace the price on momoshop.


功能

  • 降價通知 降價通知
  • 上架通知 上架通知
  • 收藏商品 收藏商品
  • 清空已收藏商品 清空已收藏商品
  • 顯示目前已收藏商品 顯示目前已收藏商品

Demo Bot

Telegram bot search @momo_price_tracker_bot


環境建置

database

  • PostgreSQL 10

執行 sqls folder底下放置的SQL file,或者可以自行使用其他db migration 工具

環境變數

環境變數 說明
DB_HOST Database host
DB_NAME Database name
DB_USER Database user
DB_PASSWORD Database user's password
BOT_TOKEN Telegram bot token
WEBHOOK_URL(Optional) If you use Heroku url like this https://{AppName}.herokuapp.com
PERIOD_HOUR Resync latest good's price time period
TELEGRAM_BOT_MODE default: polling, [polling,webhook]

Telegram bot

加入 telegram botfather並建立一個機器人,取得 token,後續須設定環境變數 BOT_TOKEN

Bot 接收訊息方式

設定環境變數 TELEGRAM_BOT_MODE

  • polling 測試使用上方便,不需要對外網址,效能上較webhook差
  • webhook 如果要在local 測試 webhook,可使用 ngrok

heroku

如果是使用免費方案,服務太久沒有收到request,就會被暫時關閉,如果要長時間維持服務,需要定時發送一些request保持服務運作。 Scheduler新增curl --location --request GET 'https://{AppName}.herokuapp.com',把AppName替換成Heroku上建立的application name

預期中的Add-ons


deploy

Heroku git deploy


執行方式

python3 App.py

Build simple local postgres env (optional)

docker run -d -p 5432:5432 --name mypostgres --restart always -v postgresql-data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=1234 -d postgres:10.17-alpine3.14

機器人指令


對話輸入momo商品網址可直接加入追蹤

  • /start 顯示目前所支援的指令
  • /my 顯示目前所有追蹤物品清單,以及當下所記錄價格
  • /clear 清除目前所有追蹤物品清單

Command menu

You need to say these to @BotFather.

Bot can show command menu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].