Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.
/ sembako-bot Public archive

A chat bot to send sembako price periodically.

Notifications You must be signed in to change notification settings

iamdejan/sembako-bot

Repository files navigation

Sembako Bot

A Telegram chat bot to send daily prices of various sembako.

What is Sembako?

Sembako is an abbreviation in Indonesian language for sembilan bahan pokok (English translation: nine main (food) commodities). It refers to 9 necessities for daily living. These commodities are:

  • Rice, sago and corn
  • Sugar (esp. granulated sugar)
  • Vegetables dan fruits
  • Meat and fish
  • Cooking oil and margarine
  • Milk
  • Egg
  • Kerosene (for cooking) and/or liquefied petroleum gas (LPG)
  • Salt

While initially this bot doesn't cover every item in sembako, it is easy to add more items.

How to Use Bot

  1. Add @tele_sembako_bot in Telegram.
    • Currently, the bot is only in Indonesian language, due to specific nature of sembako.
  2. Start by using /start command.

Run Locally

Install Dependencies

  1. Install Python 3.9.10 and pip3.
  2. Run pip3 install -r requirements.txt.
    • If you are using Mac M1 series and you cannot install psycopg2, follow this guide.

Run The Server

Run uvicorn main:app --reload. Now, you can access the server at port 8000.

Tech Stack

  • Programming language: Python 3.9.10
  • Framework: FastAPI
  • Server: serverless, using Google Cloud Run.
  • Scheduler: Google Cloud Scheduler.

How to Contribute

Financial Support (for Indonesians only)

You can use /donate menu to see the information regarding available methods of donation.

Technical Support

You can contribute in this repo, by creating unit tests, doing refactors, or adding other features.

References

About

A chat bot to send sembako price periodically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published