Assuming you are on a fresh Ubuntu VPS:
sudo apt install -y mongodb nodejs chromium-browser
You may create it at https://www.mongodb.com/cloud/atlas
or set it up locally
git clone /~https://github.com/Crazy-Marvin/QwerteeTelegramBot.git
Please put your credentials into the .env file
mv .env.example .env
TELEGRAM_TOKEN
is the token you get from @BotFather directly in Telegram.
DB_URI
is the MongoDB connection string.
You can get the connection string with this command: mongo --eval 'db.runCommand({ connectionStatus: 1 })'
HEALTH_CHECK_URL
is your personal URL from your healthchecks.io dashboard.
You can keep the others entries as they are.
node app
npm install
nano /lib/systemd/system/qwerteebot.service
systemctl start qwerteebot
systemctl enable qwerteebot
watch systemctl status qwerteebot
Your bot is running now and automatically restarts after a server reboot.