Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.78 KB

README.md

File metadata and controls

51 lines (30 loc) · 1.78 KB

designernewsbot

Telegram bot that posts new hot stories from Designer News to telegram channel

Backend

Bot runs on a small Hetzner cloud machine

Old version of this bot was written in python and was running on Google App Engine

Designer News API

Bot uses Designer News API

It loads top stories every minute and posts any story that reached 10+ score

Behance API

Bot uses Behance API

Dribbble API

Bot uses Unofficial Dribble API

Telegram API

Bot uses Telegram Bot API to post messages to the telegram channel with sendMessage request

URL shortening

Bot uses internal shortener

How to run your own designernewsbot

  • Clone this project
  • Run yarn to install dependencies
  • Run yarn migrate:dev to create a databse and apply migrations
  • Register your bot via BotFather
  • Rename .env.example to .env and
    • replace YOUR_TELEGRAM_BOT_TOKEN with your bot token
    • replace YOUR_BEHANCE_TOKEN with your behance token
  • Possibly you'll want to create your own channel and your bot as an admin. Also change @designer_news in src/helpers.ts to your channel id

Local development

To run server locally you can run yarn dev

See also