Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.04 KB

Gempa Threads Bot

This system using PHP MVC Framework with PHP 8.1.10 and NodeJS 18.18.0

DISCLAIMER

This bot was created for learning purposes.

Example

threads-bot

Introduction

Sebuah bot Threads (Meta) untuk mendeteksi adanya gempa bumi terbaru yang terjadi di Indonesia, berdasarkan data yang diambil secara berkala dari BMKG.

Configuration

  • Setup Database & URL app/config/Config.php
define("BASE_URL", "http://localhost/gempa-threads-bot/");
define("DB_HOST", "localhost");
define("DB_USER", "username");
define("DB_PASS", "password");
define("DB_NAME", "tbl_earthquake");
  • Setup Threads Bot in app/bot
npm install
  • Rename app/bot/.env.example to app/bot/.env
  • Fill Username & Password Threads (Instagram) app/bot/.env
PORT="your_port"
IG_USERNAME="your_username"
IG_PASSWORD="your_password"