A token distributing telegram bot for Ocean Protocol's testnet
# Get the latest snapshot
git clone git@github.com:iamonuwa/oceanprotocol-telegram-faucet-bot.git faucet_bot
# Change directory
cd faucet_bot/
# Install NPM dependencies
npm install
# Or, if you prefer to use `yarn` instead of `npm`
yarn install
- Send @BotFather a
/newbot
message - Pick name and username (e.g., Ocean Faucet + ocean_faucet_bot)
- Receive a BOT_TOKEN;
- Copy contents of sample.env to .env
- Insert the BOT_TOKEN in .env
- Run
npm run start
to start the bot in development mode - Do the magic 👾
- Create a Heroku account
- Install Heroku CLI
- Create a new app from Heroku WebGUI
! Run the following commands from the console
heroku login
heroku git:remote -a *app_name_on_heroku*
! The next step could be done from Heroku app Settings: -> Reveal Config Vars -> add [KEY = VALUE] pairs.
- Setup config variables
heroku config:set BOT_TOKEN=TOKEN heroku config:set APP_URL=$(heroku info -s | grep web_url | cut -d= -f2)
git add * && git commit -m "<commit-message>"
git push heroku master