{"id":22157867,"url":"https://github.com/mkbeh/sth-bro-bot","last_synced_at":"2025-03-24T14:48:15.211Z","repository":{"id":50205127,"uuid":"140879901","full_name":"mkbeh/STH-BRO-BOT","owner":"mkbeh","description":"Exchange telegram bot ","archived":false,"fork":false,"pushed_at":"2022-12-08T00:59:54.000Z","size":59,"stargazers_count":0,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T19:48:43.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkbeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-13T18:20:48.000Z","updated_at":"2020-11-21T00:26:51.000Z","dependencies_parsed_at":"2023-01-24T01:55:12.078Z","dependency_job_id":null,"html_url":"https://github.com/mkbeh/STH-BRO-BOT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkbeh%2FSTH-BRO-BOT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkbeh%2FSTH-BRO-BOT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkbeh%2FSTH-BRO-BOT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkbeh%2FSTH-BRO-BOT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkbeh","download_url":"https://codeload.github.com/mkbeh/STH-BRO-BOT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294764,"owners_count":20591899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T03:16:07.034Z","updated_at":"2025-03-24T14:48:15.186Z","avatar_url":"https://github.com/mkbeh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STX_BRO_BOT\n\n## Deployment guide to Debian 9+ server.\n\n#### Update system.\n    - apt-get update \u0026\u0026 apt-get upgrade -y \u0026\u0026 apt-get dist-upgrade -y\n    - apt-get remove --purge unscd\n    - userdel -r debian\n\n#### Install python last version , dev tools, pip3, virtualenv\n\t- nano /etc/apt/sources.list\n\t  #### # Test repo for python3+\n\t  deb http://ftp.de.debian.org/debian testing main\n\t-     # echo 'APT::Default-Release \"stable\";' | sudo tee -a /etc/apt/apt.conf.d/00local\n\t- sudo apt-get update\n\t- sudo apt-get -t testing install python3.6\n\t- python3 -V\n\t\n\t- sudo apt-get install python3-dev python3-pip\n\t- sudo pip3 install virtualenv\n\t  (make project dir; virtualenv venv; source /bin/activate)\n\t- sudo apt-get install git\n\t- sudo apt-get install man-db \n\n\tInstall nodejs\n\t- su root\n\t- apt-get install curl\n\t- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -\n\t- sudo apt-get install -y nodejs\n\t- sudo apt-get install build-essential\n\t- sudo apt-get update\n\t- sudo apt-get install build-essential libssl-dev\n\t\n\n#### Install smartholdem rpc lib.\n\t- http://api.smartholdem.io/#rpc-daemon\n\t- add to autorun https://community.smartholdem.io/topic/21/chastye-voprosy-po-yspolzovanyiu-full-node-level-a/2\n\n#### Git clone repo with project.\n    - git clone ...\n\n#### Gen priv key.\n\t- sudo apt-get install openssl\n\t- openssl genrsa -out webhook_pkey.pem 2048\n\n#### Gen cert.\n\t- openssl req -new -x509 -days 3650 -key webhook_pkey.pem -out webhook_cert.pem\n\n#### Make venv.\n\t- sudo apt-get install python3-pip python3-dev\n\t- sudo pip3 install virtualenv\n\t- virtualenv BRObot\n\t- cd BRObot/\n\t- source bin/activate\n\t- pip3 install -r requirements.txt\n\n#### Current default time zone: 'Etc/UTC'\nLocal time is now:      Tue Apr 17 11:36:21 UTC 2018.\nUniversal Time is now:  Tue Apr 17 11:36:21 UTC 2018.\nRun 'dpkg-reconfigure tzdata' if you wish to change it.\n\n#### Insalling mongodb.\n\t- sudo apt-get install dirmngr\n\t- sudo apt-get install mongodb\n\t- sudo systemctl start mongodb\n\t- sudo systemctl enable mongodb\n\n#### Installing gettext and tools.\n\t- apt-get install gettext\n\t- msgfmt -o \u003coutput.mo file\u003e \u003cbase.po file\u003e\n\n#### Installing and setting supervisord.\n\t- sudo apt-get install supervisor\n\t- add conf file in /etc/supervisor/conf.d/...\n\t- sudo supervisorctl reread\n\t- sudo supervisorctl update\n\t\n\n### Supervisor app conf example.\n```\n[program:stx_bro_bot]\ncommand=/home/brobot/BRObot/venv/bin/python3 /home/brobot/BRObot/STX_BRO_BOT/stx_bro.py\nstdout_logfile=/var/log/stx_bro_bot.log\nautostart=true\nautorestart=true\nuser=brobot\nstopsignal=KILL\nnumprocs=1\n```\n\n#### Set smartholdemrpc in pm2 \n\t- cd smartholdemrpc\n\t- npm install pm2 -g \n\t- pm2 start server.js\n\t- pm2 startup (exec output command)\n\t\n#### Install memcached.\n    - sudo apt-get -y install memcached\n    - sudo systemctl enable memcached\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkbeh%2Fsth-bro-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkbeh%2Fsth-bro-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkbeh%2Fsth-bro-bot/lists"}