Simple Telegram bot for converting HN links to sharable messages. A working instance of the bot can be found here: @HNLinkFmtBot.
Make sure you have at least Elixir 1.15 installed.
# Clone the repository
git clone [email protected]:chaychoong/hntg.git
cd hntg
# Install dependencies
mix deps.get
# Run the bot in an iex session
iex -S mix
Run fly deploy
to deploy the bot to Fly.io. You will need to set the
TELEGRAM_BOT_TOKEN
environment variable:
fly secrets set TELEGRAM_BOT_TOKEN=your_token_here
If Fly.io is out of the question, you can use the Dockerfile
to build an OCI
image and run it however you like.