Skip to content

UmarbekSaidov/openbudget-vote-bot

 
 

Repository files navigation

openbudget-vote-bot

Openbudget loyihasi uchun ovoz yig'uvchi bot. Ushbu bot orqali to'g'ridan to'g'i saytga ovoz to'plash uchun raqam yuborish va uni sms orqali tasdiqlash mumkin. Shuningdek bot faoliyati davomida ovozlar uchun to'lovlarni nazorat qilishni ham o'z ichiga oladi.

Bot ikki qismga bo'lingan, admin paneli va user panel.

O'rnatish

  1. hook.php va crone.php fayllaridan bot tokenini o'zingizdagi botga moslang.
  2. crone.php faylini cronjobga qo'shing:
@reboot /usr/bin/php /home/user/bot/crone.php > /dev/null 2>&1
  1. opb.php faylini tasix internet doirasida bo'lgan istalgan serverga joylang va functions.php faylidan api() funksiyasi uchun fayl o'rnashgan lokatsiyani kiriting.

  2. hook.php faylini setWebhook orqali telegram apiga ulang

  3. data/owners.dat faylida kerakli adminitratorning telegram idenfikatorini kiriting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%