-
Notifications
You must be signed in to change notification settings - Fork 20
How to RUN
Albert Safiullin edited this page Apr 11, 2024
·
8 revisions
Welcome to the formatbot1 wiki!
- clone the repo
git clone https://github.com/albertincx/formatbot1.git
cd formatbot1
- install modules and dev module
yarn
bash dev-install.txt
- 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
- 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
- run
yarn dev