Skip to content

How to RUN

Albert Safiullin edited this page Apr 11, 2024 · 8 revisions

Welcome to the formatbot1 wiki!

Installation

  1. clone the repo
git clone https://github.com/albertincx/formatbot1.git
cd formatbot1
  1. install modules and dev module
yarn
bash dev-install.txt
  1. Create bot by https://t.me/BotFather and set TBTKN to .env file (REQUIRED)
TBTKN=you bot token from BotFather
TGADMIN=you telegram ID

3.1 Optional. Create 2 DB instance with best DB corp https://cloud.mongodb.com and set to .env file (REQUIRED)

MONGO_URI=CONNECTON_URI
MONGO_URI_OLD=CONNECTON_URI_SECOND_INSTANCE
  1. Get the multiple tokens from http://telegra.ph/api and set to .env file (REQUIRED)
TGPHTOKEN_0=telegra.ph token 
TGPHTOKEN_1=telegra.ph token 
# ...
TGPHTOKEN_6=telegra.ph token 

5. Go to https://cloudamqp.com/ and get the URI, set MESSAGE_QUEUE to .env file (REQUIRED)

MESSAGE_QUEUE="uri from cloudamqp"
# you have to set channel names for message queue
TASKS_DEV=test1 or test1DEV
TASKS2_DEV=test2 or test2DEV

  1. run
yarn dev
Clone this wiki locally