diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..d1964c2 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,13 @@ +## To install node and yarn just use the folowing code + + +Using Debian, as root + +```bash +curl -sL https://deb.nodesource.com/setup_15.x | bash - +apt install -y nodejs +apt install gcc g++ make -y +curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - +echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list +apt update && apt install yarn -y +``` diff --git a/README.md b/README.md index adfd49a..3745e13 100755 --- a/README.md +++ b/README.md @@ -25,6 +25,16 @@ docker run --rm \ thundersquared/tikvidbot ``` + +Start it without Docker: + +install node and yarn with this manual: + +https://github.com/Suyuimo/tikvidbot/blob/master/INSTALL.md + + +Just run "yarn" once and then you can start the bot with "yarn dev" + ## Tech stack The bot is written in Node.JS, relies on [telegraf](https://github.com/telegraf/telegraf) to consume Telegram's Bot API, loves [got](https://github.com/sindresorhus/got) for fetching video pages and streaming videos and [jsdom](https://github.com/jsdom/jsdom) for parsing and interacting with them.